Skip to content

Commit

Permalink
2009-05-29 Kai Tietz <kai.tietz@onevision.com>
Browse files Browse the repository at this point in the history
        * pex-win32.c (pex_win32_fdopenr): Set INHERIT to false.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147984 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
ktietz committed May 29, 2009
1 parent fe4600c commit 33a1ad4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libiberty/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2009-05-29 Kai Tietz <kai.tietz@onevision.com>

* pex-win32.c (pex_win32_fdopenr): Set INHERIT to false.

2009-05-29 Michael Matz <matz@suse.de>

* fibheap.c (fibheap_replace_key_data): Make sure we don't early
Expand Down
5 changes: 5 additions & 0 deletions libiberty/pex-win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -915,6 +915,11 @@ static FILE *
pex_win32_fdopenr (struct pex_obj *obj ATTRIBUTE_UNUSED, int fd,
int binary)
{
HANDLE h = (HANDLE) _get_osfhandle (fd);
if (h == INVALID_HANDLE_VALUE)
return NULL;
if (! SetHandleInformation (h, HANDLE_FLAG_INHERIT, 0))
return NULL;
return fdopen (fd, binary ? "rb" : "r");
}

Expand Down

0 comments on commit 33a1ad4

Please sign in to comment.