chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] daemonize egg: redirect I/O?


From: Thomas Christian Chust
Subject: Re: [Chicken-users] daemonize egg: redirect I/O?
Date: Mon, 29 Oct 2007 18:25:30 +0100
User-agent: Thunderbird 2.0.0.6 (Macintosh/20070728)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]