[LineControl-development] linesrv doesn't close standard file descriptors
Brought to you by:
sfuchs
|
From: Jonathan R. <jo...@te...> - 2003-12-18 20:50:00
|
I've been using linesrv for a month or two and it has mostly worked great; thanks for all the hard work. I've noticed that linesrv goes into the background on startup, but doesn't close its stdin, stdout, and stderr. I think this has been causing the linesrv process to hang when it runs a script which produces output. I have attached a patch against linesrv-2.1.18 which removes a redundant call to fork and attaches all three standard file descriptors to "/dev/null", which seems to be the right thing to do, since it is what other daemons do. This should address a bug report which has been open for more than a year: <URL:http://sourceforge.net/tracker/index.php?func=detail&aid=623478&group_id=6411&atid=106411> Jonathan Rogers |