Mark Fredrickson wrote: >> I think it would suffice for daemonize to wrap the call to the daemon's >> main procedure in a dynamic-wind block and call the cleanup function >> from the exit thunk. Unless the daemon procedure terminates itself with >> a low-level _exit or by sending itself a kill signal, the cleanup code >> should then always be executed. > > Wouldn't this also call the exit thunk if the daemon proc itself ever > issues a call-with-current-continuation? That sounds like unexpected > behavior.
It would do so -- whether that is desired or not is probably a question of taste. cu, Thomas _______________________________________________ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users