[gambit-list] For fork:ed Gambit process that should not take any console input, how uninitialize stdin & signal handlers? (Possibly only needed to be done for the handler for SIGTSTP.)

Mikael mikael.rcv at gmail.com
Sat Oct 29 16:49:33 EDT 2011


Invoking setsid() on the child as only "console shutdown/detach" action
delivered completely for this purpose, resolved. Kind regards

2011/10/29 Mikael <mikael.rcv at gmail.com>

> Hi, making a strace wrapper app monitor to be run in a fork:ed Gambit
> process. This process is completely silent and never has any console
> interaction except for minor output to stdout.
>
> In the current setup, when I press ctrl+c, both forked processes respond
> with getting to the REPL. For the fork:ed process that should not have any
> console interaction anymore, how do I disable this behavior i.e. how do I
> shut down signal handlers & stdin for it? (Possibly only needed to be done
> for the handler for SIGTSTP.)
>
> I tried doing (close-port (current-input-port)) but it didn't deliver for
> this purpose.
>
> Kind regards,
> Mikael
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20111029/443c5f6c/attachment.htm>


More information about the Gambit-list mailing list