[Openmcl-devel] Running CCL as a daemon
ron at flownet.com
Fri Feb 19 16:52:44 UTC 2010
Nothing is ever *supposed* to read from stdin. But if you just launch a vanilla CCL it will create a listener which will attempt to read from stdin.
In a standard unix daemon, the stdin file descriptor is closed. (So it stdout.) I haven't actually tried this, but I suspect CCL will not be happy if that happens.
If you don't close stdin, even if you don't ever provide any input you still have to be aware of what it ends up being connected to because it's a potential security hole.
On Feb 19, 2010, at 7:04 AM, Daniel Weinreb wrote:
> stdout and stderr are just sent to files. The software
> isn't generally supposed to use them for anything.
> Nothing ever reads from stdin; it's just daemon software.
> Ron Garret wrote:
>> But what do you do with stdin/stdout and the initial listener?
>> On Feb 18, 2010, at 8:48 AM, Daniel Weinreb wrote:
>>> We do that.
>>> -- Dan
>>> Robert Goldman wrote:
>>>> For a long-running daemon program we've worked on, we've compiled a
>>>> swank server into the program, so that one can attach a slime session.
>>>> Possibly worth investigating?
>>>> Openmcl-devel mailing list
>>>> Openmcl-devel at clozure.com
>>> Openmcl-devel mailing list
>>> Openmcl-devel at clozure.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Openmcl-devel