Parent Directory | Revision Log | Patch
revision 1.5 by mbongi, Mon Sep 23 08:23:46 2013 UTC | revision 1.6 by mocchiut, Thu Jan 16 15:52:36 2014 UTC | |
---|---|---|
# | Line 115 int main(int numinp, char *inps[]){ | Line 115 int main(int numinp, char *inps[]){ |
115 | // redirect to dev/null the stdout | // redirect to dev/null the stdout |
116 | // | // |
117 | int nul; | int nul; |
118 | nul = open("/dev/null", O_CREAT | O_RDWR,S_IREAD | S_IWRITE); | nul = open("/dev/null", O_CREAT | O_RDWR,S_IRUSR | S_IWUSR); |
119 | dup2(nul,1); | dup2(nul,1); |
120 | dup2(nul,2); | dup2(nul,2); |
121 | close(nul); | close(nul); |
|
ViewVC Help | |
Powered by ViewVC 1.1.23 |