diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2007-12-14 14:32:40 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2007-12-14 14:32:40 +0300 |
commit | cce64750b25abfc19e1a9e75d6c59d3844c56f23 (patch) | |
tree | 968cbddc8d4b95043b38e59a4bf7ca729567d61a /winsup/cygwin/dtable.cc | |
parent | 3d711a27bae5d6a4e0f7eacc6f8ba38abea38a6c (diff) |
* dtable.cc (dtable::set_file_pointers_for_exec): Reenable. Fix
comment.
* spawn.cc (spawn_guts): Call cygheap->fdtab.set_file_pointers_for_exec
only for non-Cygwin processes.
Diffstat (limited to 'winsup/cygwin/dtable.cc')
-rw-r--r-- | winsup/cygwin/dtable.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/winsup/cygwin/dtable.cc b/winsup/cygwin/dtable.cc index fc9b3a7e2..575384650 100644 --- a/winsup/cygwin/dtable.cc +++ b/winsup/cygwin/dtable.cc @@ -672,8 +672,8 @@ dtable::fixup_before_exec (DWORD target_proc_id) void dtable::set_file_pointers_for_exec () { -/* This is not POSIX-compliant. */ -#if 0 +/* This is not POSIX-compliant so the function is only called for + non-Cygwin processes. */ LONG off_high = 0; lock (); fhandler_base *fh; @@ -681,7 +681,6 @@ dtable::set_file_pointers_for_exec () if ((fh = fds[i]) != NULL && fh->get_flags () & O_APPEND) SetFilePointer (fh->get_handle (), 0, &off_high, FILE_END); unlock (); -#endif } void |