mirror of
https://github.com/mirror/make.git
synced 2025-02-25 03:10:31 +08:00
* function.c (func_shell): Don't close pipedes[1] if it is -1.
Fixes Savannah bug #20495.
This commit is contained in:
parent
f8f3b9005b
commit
656b15a404
@ -1,3 +1,8 @@
|
|||||||
|
2009-03-07 Eli Zaretskii <eliz@gnu.org>
|
||||||
|
|
||||||
|
* function.c (func_shell): Don't close pipedes[1] if it is -1.
|
||||||
|
Fixes Savannah bug #20495.
|
||||||
|
|
||||||
2008-09-30 Eli Zaretskii <eliz@gnu.org>
|
2008-09-30 Eli Zaretskii <eliz@gnu.org>
|
||||||
|
|
||||||
* build_w32.bat (GCCBuild): Use "-gdwarf-2 -g3" instead of
|
* build_w32.bat (GCCBuild): Use "-gdwarf-2 -g3" instead of
|
||||||
|
@ -1687,7 +1687,10 @@ func_shell (char *o, char **argv, const char *funcname UNUSED)
|
|||||||
free (command_argv[0]);
|
free (command_argv[0]);
|
||||||
free (command_argv);
|
free (command_argv);
|
||||||
|
|
||||||
/* Close the write side of the pipe. */
|
/* Close the write side of the pipe. We test for -1, since
|
||||||
|
pipedes[1] is -1 on MS-Windows, and some versions of MS
|
||||||
|
libraries barf when `close' is called with -1. */
|
||||||
|
if (pipedes[1] >= 0)
|
||||||
close (pipedes[1]);
|
close (pipedes[1]);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user