Back out revision 1.34; the problem lies elsewhere.

This commit is contained in:
Todd C. Miller
2009-10-11 14:16:22 +00:00
parent f44c2261fd
commit a3185d3e25

View File

@@ -647,14 +647,11 @@ script_child(path, argv)
} }
/* Flush any remaining output to stdout (already updated output file). */ /* 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); n = fcntl(STDOUT_FILENO, F_GETFL, 0);
if (n != -1) { if (n != -1) {
n &= ~O_NONBLOCK; n &= ~O_NONBLOCK;
(void) fcntl(STDOUT_FILENO, F_SETFL, n); (void) fcntl(STDOUT_FILENO, F_SETFL, n);
} }
#endif
while (output.len > output.off) { while (output.len > output.off) {
n = write(STDOUT_FILENO, output.buf + output.off, n = write(STDOUT_FILENO, output.buf + output.off,
output.len - output.off); output.len - output.off);