Ticket #27555: 0005-dont-dup-closed-stdin.patch

File 0005-dont-dup-closed-stdin.patch, 542 bytes (added by monty19@…, 14 years ago)

New 0005-dont-dup-closed-stdin.patch

  • 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  
    31143114      close (1);                /* close stdout */
    31153115      close (2);                /* close stderr */
    31163116
    3117       if (dup2 (fd, 0) == -1)
     3117      if (fd != 0 && dup2 (fd, 0) == -1)
    31183118        _exit (1);
    31193119      if (dup2 (result_pipe[WRITE_END], 1) == -1)
    31203120        _exit (1);