On Thu, May 23, 2013 at 3:02 PM, Laurent Bercot <[email protected]> wrote: > So we have two approaches here. > > The first one: > * stop process 1 > * scan processes to kill everything except my own session, so my calling > shell survives. > - this requires stopping all processes during the scan, to avoid race > conditions > - but I want my calling shell to resume after I'm done, so I'll send > SIGCONT to everyone > - oops, I don't want to include process 1 in my SIGCONT, else it will > restart stuff I don't want restarted > - so I need to send SIGCONT to everyone except process 1, which > requires doing it by hand
You are right, this is ugly. The "kill(-1, sig) and then exec PROG ARGS" tool would be better here. _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
