'kill 0' from cron script kills crond

Denys Vlasenko vda.linux at googlemail.com
Wed Dec 3 10:47:37 UTC 2008


On Wednesday 03 December 2008 09:24, Bernhard Reutner-Fischer wrote:
> >This means that "standard" cron puts each child into new process group.
> >(BTW, this "standard" crond - what --version and/or --help says?)
> >
> >Please try this patch, does it fix the problem?
> 
> please use bb_setpgrp (see platform.h).

Done.


/* use legacy setpgrp(pid_t,pid_t) for now.  move to platform.c */
#define bb_setpgrp() do { pid_t __me = getpid(); setpgrp(__me,__me); } while (0)

Does __digital__ *really* have setpgrp(x,y) with two params?!
Maybe it's a typo, should be setpgid(x,y)?
--
vda



More information about the busybox mailing list