chicken-hackers
[Top][All Lists]
Advanced

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

Re: [Chicken-hackers] [PATCH] make csi close stdin/stderr/stdout when ex


From: Christian Kellermann
Subject: Re: [Chicken-hackers] [PATCH] make csi close stdin/stderr/stdout when exiting.
Date: Tue, 24 Apr 2012 12:49:18 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

* felix winkelmann <address@hidden> [120424 12:31]:

> Is this necessary? What if there is still output from lower levels
> of the runtime system? (say by starting csi with "-:d")?

You loose this output indeed, for example in the best case you won't see:

#;1> ,q
[debug] forcing finalizers...
[debug] application terminated normally
$

So maybe this is not the best way to deal with that. But what other
options are there? Can I explicitly call a finalizer?  Do we have a
way to insert an atexit handler that does not smash either the user's
or can restore the original chain (if at last my own handler
implements a chain, by calling the previous one) when the port is
explicitly closed by the user?

Having cleanup action upon a close seemed a reasonable thing to do.

Maybe it is not.

Kind regards,

Christian

--
9 out of 10 voices in my head say, that I am crazy,
one is humming.



reply via email to

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