On Monday 04 February 2008 06:45, Vladimir Dronnikov wrote: > > atexit() is evil. > Is there another BB approved way to work with lock files cleanly? To > set handlers for all signals to prevent program occasional > termination?
SIGKILL tends to defeat atexit anyway. When you work with lockfiles, you need to deal with stale lockfiles anyway, thus "more reliable" deletion does not eliminate the problem because it is still not 100% reliable. > Isn't it too bloaty? Especially when used in multiple > applets. I feel disadvantages of non-local behavior of atexit outweigh advantages. Just save filename and unlink it in main program. If I'm wrong, we can always revisit it later. -- vda _______________________________________________ busybox mailing list [email protected] http://busybox.net/cgi-bin/mailman/listinfo/busybox
