[BusyBox] Freeing memory from a signal handler in init?

Rob Landley rob at landley.net
Mon May 31 05:42:14 UTC 2004


On Sunday 30 May 2004 23:03, you wrote:
> Interesting.  Perhaps this explains my problem
> with my SHUTDOWN actions never being executed.

In theory, the delete only happens after the waitfor() call, so whatever it is 
should have completed before we do anything that would cause a hang.  (That's 
probably why it hadn't been noticed before.)

CTRLALTDEL at least probably doesn't need to be removed from the list.  In the 
case of it triggering something other than a reboot or shutdown, it _should_ 
trigger more than once.  Just not until the previous call to it has finished 
executing...

A better fix might be to move the actual free to the loop in init_main, or 
something.  (Possibly the delete logic itself could move moved there, instead 
of deleting them in run_actions just flag them as dead and do the cleanup in 
that init_main loop...)

I'll wait for Eric to express an opinion...

Rob

-- 
www.linucon.org: Linux Expo and Science Fiction Convention
October 8-10, 2004 in Austin Texas.  (I'm the con chair.)




More information about the busybox mailing list