* 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.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user