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.214 by ayin, Fri Sep 14 17:10:34 2007 UTC vs.
Revision 1.215 by root, Mon Oct 8 15:36:13 2007 UTC

319 if ((i = open ("/dev/null", O_RDONLY)) < 0) 319 if ((i = open ("/dev/null", O_RDONLY)) < 0)
320 { 320 {
321 /* TODO: BOO HISS */ 321 /* TODO: BOO HISS */
322 dup2 (STDERR_FILENO, STDIN_FILENO); 322 dup2 (STDERR_FILENO, STDIN_FILENO);
323 } 323 }
324 else if (i > STDIN_FILENO) 324 else if (i != STDIN_FILENO)
325 { 325 {
326 dup2 (i, STDIN_FILENO); 326 dup2 (i, STDIN_FILENO);
327 close (i); 327 close (i);
328 } 328 }
329 329

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines