ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/init.C
(Generate patch)

Comparing rxvt-unicode/src/init.C (file contents):
Revision 1.241 by root, Sat Jan 19 14:23:33 2008 UTC vs.
Revision 1.242 by ayin, Mon Jan 21 14:52:44 2008 UTC

315static void 315static void
316init_secondary () 316init_secondary ()
317{ 317{
318 int i; 318 int i;
319 319
320 /*
321 * Close all unused file descriptors
322 * We don't want them, we don't need them.
323 */
324 if ((i = open ("/dev/null", O_RDONLY)) < 0) 320 if ((i = open ("/dev/null", O_RDONLY)) < 0)
325 { 321 {
326 /* TODO: BOO HISS */
327 dup2 (STDERR_FILENO, STDIN_FILENO); 322 dup2 (STDERR_FILENO, STDIN_FILENO);
328 } 323 }
329 else if (i != STDIN_FILENO) 324 else if (i != STDIN_FILENO)
330 { 325 {
331 dup2 (i, STDIN_FILENO); 326 dup2 (i, STDIN_FILENO);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines