]> granicus.if.org Git - sudo/commitdiff
Back out revision 1.34; the problem lies elsewhere.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 11 Oct 2009 14:16:22 +0000 (14:16 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 11 Oct 2009 14:16:22 +0000 (14:16 +0000)
script.c

index 5e94ae0a9e85041550b08f447a768bd5d8bddbb0..e27aba0a768f32f0cc48f398d42df987253ec5a0 100644 (file)
--- a/script.c
+++ b/script.c
@@ -647,14 +647,11 @@ script_child(path, argv)
     }
 
     /* Flush any remaining output to stdout (already updated output file). */
-#if 0
-    /* XXX - this can cause us to hang trying to exit */
     n = fcntl(STDOUT_FILENO, F_GETFL, 0);
     if (n != -1) {
        n &= ~O_NONBLOCK;
        (void) fcntl(STDOUT_FILENO, F_SETFL, n);
     }
-#endif
     while (output.len > output.off) {
        n = write(STDOUT_FILENO, output.buf + output.off,
            output.len - output.off);