Summary: | tinyproxy doesnt close stdin, stdout, stderr | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | roma1390 |
Component: | Current packages | Assignee: | SpanKY <vapier> |
Status: | RESOLVED UPSTREAM | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
roma1390
2003-10-27 02:14:54 UTC
odd ... src/daemon.c: void makedaemon(void) { <some code> #if 0 close(0); close(1); close(2); #endif } i talked to the author and here's what he had to say: <email #1> The code originally closed those three descriptors, but when tinyproxy needed to report an error to the user (like being unable to write the current PID) it would crash since the descriptors were already closed. Those lines should be removed completely, and the closing of the descriptors should wait until tinyproxy has finished doing all the sanity checks. </email #1> however i talked to him some more and he said he'll look into moving the closing to another location and/or just logging to the logfile/syslog process ... so this bug will wait on an upstream fix an upstream issue i guess nothing i can do about it ... i could patch it, but i'd rather not change the behavior of upstream since they already know about the issue |