Parent Directory | Revision Log | Patch
revision 1.11 by mocchiut, Mon Dec 28 08:39:25 2009 UTC | revision 1.12 by pam-fi, Tue Nov 29 13:20:43 2011 UTC | |
---|---|---|
# | Line 331 int main(int numinp, char *inps[]){ | Line 331 int main(int numinp, char *inps[]){ |
331 | // If not in verbose mode redirect to /dev/null the stdout and stderr | // If not in verbose mode redirect to /dev/null the stdout and stderr |
332 | // | // |
333 | if ( !beverbose ){ | if ( !beverbose ){ |
334 | nul = open("/dev/null", O_CREAT | O_RDWR,S_IREAD | S_IWRITE); | nul = open("/dev/null", O_CREAT | O_RDWR,S_IRUSR | S_IWUSR); |
335 | dup2(nul,1); | dup2(nul,1); |
336 | dup2(nul,2); | dup2(nul,2); |
337 | }; | }; |
|
ViewVC Help | |
Powered by ViewVC 1.1.23 |