Ticket #27555: 0005-dont-dup-closed-stdin.patch
File 0005-dont-dup-closed-stdin.patch, 542 bytes (added by monty19@…, 14 years ago) |
---|
-
dbus/dbus-sysdeps-unix.c
diff -urN dbus-1.4.0-old/dbus/dbus-sysdeps-unix.c dbus-1.4.0-new/dbus/dbus-sysdeps-unix.c
old new 3114 3114 close (1); /* close stdout */ 3115 3115 close (2); /* close stderr */ 3116 3116 3117 if ( dup2 (fd, 0) == -1)3117 if (fd != 0 && dup2 (fd, 0) == -1) 3118 3118 _exit (1); 3119 3119 if (dup2 (result_pipe[WRITE_END], 1) == -1) 3120 3120 _exit (1);