diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1999-05-09 22:47:39 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-05-09 22:47:39 +0000 |
commit | 45bc920620377d5a7720d3d562c48df1eb0c2e68 (patch) | |
tree | ddf80cf0881964ffc19fe3b1f195ebfb7cc09284 /win32/win32.c | |
parent | 46a8855a50eb32c89dd161fbf5c3956ca0e452d8 (diff) | |
download | perl-45bc920620377d5a7720d3d562c48df1eb0c2e68.tar.gz |
flush all open output buffers before fork(), exec(), system, qx//
and pipe open() operations, simplifying buffering headaches faced
by users; uses fflush(NULL), which may need Configure test
p4raw-id: //depot/perl@3352
Diffstat (limited to 'win32/win32.c')
-rw-r--r-- | win32/win32.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/win32/win32.c b/win32/win32.c index b4b208e74d..5e54571d78 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -377,8 +377,7 @@ my_popen(char *cmd, char *mode) #define fixcmd(x) #endif fixcmd(cmd); - win32_fflush(stdout); - win32_fflush(stderr); + PERL_FLUSHALL_FOR_CHILD; return win32_popen(cmd, mode); } |