Re: [LineControl-development] linesrv doesn't close standard file descriptors
Brought to you by:
sfuchs
|
From: Daniel R. <da...@ro...> - 2003-12-19 13:46:08
|
S. Fuchs <sf...@gm...> [2003-12-19/11:38]:
> Well... in linesrv-3 we have it only once, right? (in bool
> CUseful::Detach(), useful.cc)
Oh. I grepped for calls to setsid(), which turned up 3 detach-like code
snippets in execute.cc's various exec methods, but neither did I realise
that they served another purpose (which should not surprise, as the
purpose of those methods is not documented in comments), nor did realise
that there was a proper detach method in useful.cc - my bad.
> Please have a look at the current cvs HEAD version. I introduced a
> HAVE_DAEMON conditional. Sorry, right now I don't have the time to
> test it. So please wait until I do it or do it yourself and report.
Looks good, will test it later today (night more likely than day
though). I might even have a go at integrating the changes into
linesrv-3 Detach(), if nobody will object.
Cheers,
Dan
--=20
Daniel Roethlisberger <da...@ro...>
OpenPGP key id 0x804A06B1 (1024/4096 DSA/ElGamal)
144D 6A5E 0C88 E5D7 0775 FCFD 3974 0E98 804A 06B1
!->
|