Parent Directory | Revision Log | Patch
revision 1.103 by martinp, Fri Oct 31 17:16:52 2003 UTC | revision 1.104 by hauk, Wed Nov 12 09:03:20 2003 UTC | |
---|---|---|
# | Line 1240 void redirect_stdfd() { | Line 1240 void redirect_stdfd() { |
1240 | ||
1241 | int i; | int i; |
1242 | ||
Run.have_tty= FALSE; | ||
1243 | for(i= 0; i < 3; i++) | for(i= 0; i < 3; i++) |
1244 | if(close(i) == -1 || open("/dev/null", O_RDWR) != i) | if(close(i) == -1 || open("/dev/null", O_RDWR) != i) |
1245 | log("Cannot reopen standard file descriptor (%d) -- %s\n", i, STRERROR); | log("Cannot reopen standard file descriptor (%d) -- %s\n", i, STRERROR); |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |