Re: Reinitializer failing to run
Will Noble <[email protected]> Tue, 30 Apr 2013 10:39:32 -0700
| Newsgroups | gmane.lisp.scheme.scheme48 |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Apr 29, 2013 at 02:42:43PM +0000, Taylor R Campbell wrote: > If you want to guarantee that the reinitializer has been included in > the image in some code you want to run, you can pass it to the NO-OP > procedure (from the BIG-UTIL structure, if I recall correctly) in that > code. E.g., you might do this at the start of WAIT-FOR-CHILD-PROCESS: > > (define (wait-for-child-process pid) > (no-op sigchld-reinitializer) > ...mess with pid...) Thanks for the quick reply. No-op is a good trick to remember. I was just thinking that if I did (define (wait-for-child-process pid) signals-reinitializer ...) the variable reference might get removed. However, in this case a ton of signals-related procedures in the POSIX module would need this treatment. I think Mike would want to use some other solution. Best, Will