[LineControl-development] linesrv doesn't close standard file descriptors
Brought to you by:
sfuchs
|
From: Jonathan R. <jo...@te...> - 2003-12-18 20:58:40
|
I was too hasty and sent this message without the attachment. Here is the entire message again, this time with the attachment. 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 ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ LineControl-development mailing list Lin...@li... https://lists.sourceforge.net/lists/listinfo/linecontrol-development |