/srv/irclogs.ubuntu.com/2008/11/24/#upstart.txt

keesj:.. not good http://paste-it.net/raw/public/q26a6ac/ ..12:54
keesjproc is not mounted so I guess it's normal that I can't open "/proc/%d/oom_adj" whatever that is :P12:58
arekmyou need a patch that ignores this error instead of failing13:12
arekmhttp://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/~checkout~/SOURCES/upstart-oomfail.patch?rev=1.1;content-type=text%2Fplain13:13
ion_CVS? *shiver*13:14
arekmcvs sill works you know13:17
ion_FSVO works13:17
keesjarekm: thanks 13:28
keesjcvs never left me down13:57
keesjunlike upstart 13:58
keesjright now :p13:58
arekmupstart is well, too new to be marked as "good"14:11
keesjlol , it's hard to debug the init proccess. for the kernel i use jtag+openocd  and for userland many tricks but the "init" process is just a pain14:18
keesjhmm , two more problems15:09
suihkulokkikeesj: kvm/qemu are convinient when debugging init15:11
keesjtyping start with no argument segfaults and initctl list looks very bad15:12
keesjhttp://paste-it.net/raw/public/j18a061/15:12
keesjsuihkulokki: I also have a qemu build running with a nfs export15:13
keesjI guess there must be a way to attach gdb to the init process when the kernel starts15:14
suihkulokkikeesj: qemu -p15:15
keesjsuihkulokki: I do full system emulation (so also a kernel) als upstart doens't like not being something else then p1 15:26
keesjit's not that easy :p15:27
suihkulokkikeesj: have you tried? qemu -p works well system qemu. you can stop anywhere in the guest execution.15:44
keesjso that would be the kernel right. 15:54
keesjI do something like this http://paste-it.net/raw/public/ve3bd51/ starting with -p doens't have effect and I need to switch to the qemu control (control-a c) and type gdbserver 1234 to start it :p15:57
* suihkulokki is having trouble shutting down system cleanly using upstart native mode16:02
sadmac2ion_: ping20:57
ion_sadmac2: pong21:13
sadmac2ion_: I'm working on a waitfd implementation, was wondering if you wanted to comment on how the api should look21:13
ion_I could take a look.21:13
sadmac2ion_: its not really a code matter. just whatever you'd like the function signature to look like21:15
ion_I’m afraid i haven’t thought of waitfd enough to have any ideas, but if you shared your ideas, i might have thoughts. :-)21:17
sadmac2ion_: right now it takes basically the same arguments as waitpid, and the descriptor spits out a stream of siginfos that would come from calling waitpid repeatedly.21:18
ion_Alright, sounds good.21:19
sadmac2ion_: the interesting bits are: is specifying such a descriptor for one process useful, and do we need a way to specify n specific processes21:20
sadmac2?21:20
ion_waitfd (..., {pid0, pid1, pid2, NULL}); or waitfd (..., pid0, pid1, pid2) perhaps?21:23
sadmac2ion_: varargs? in MY system call?21:23
ion_Thus the former one. :-)21:23
sadmac2what I dislike there is that it doesn't map easily to the underlying wait4 call21:24
ion_How about just waitfd (-1, ...), have it spout siginfo_ts for all pids and filter them as appropriate in userspace, in case the app is interested of multiple pids?21:28
sadmac2ion_: that's a given21:30
sadmac2ion_: right now you can wait on all, a specific pid, or a group21:30
sadmac2you just can't do N specific pids21:30
ion_Yeah, i meant that as an answer to how to do N specific pids21:30
ion_Capture all, filter them in the app21:31
sadmac2ion_: certainly it can be done. is it best?21:33
ion_int fd = waitfd (...); ioctl (fd, WAITFDADDPID, pid0); ... :-)21:38
sadmac2ion_: no21:38
sadmac2ion_: the array thing is more likely21:38
ion_Keybuk probably would give better input.21:44
sadmac2indeed21:45
sadmac2but I haven't seen him today21:46
ion_He’s on a leave AFAIK.21:46
sadmac2ah21:46
ion_I’d spend *more* time on IRC when on a leave. :-P21:47
sadmac2heh21:47
sadmac2ion_: fun disaster case: what does read(mywaitfd) return when wait() would return ECHILD?22:26
ion_Hmm :-)22:33
sadmac2ion_: the read manpage says read can return "other things" depending on what its hooked to.22:33
ion_siginfo_t with si_pid = 0 or something like that?22:34
sadmac2no, I think we should throw an error.22:34
sadmac2timerfd already has a custom error code entry, this will be no different.22:35
ion_Alright22:35

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!