2004-06-28 Andreas Schwab <schwab@suse.de>

* process.c (internal_exec): Move TCB_WAITEXECVE handling here.
	(sys_execve): Remove it here.
This commit is contained in:
Roland McGrath 2004-07-12 07:38:55 +00:00
parent 6b3b1fcee1
commit fdb097f637

View File

@ -1689,12 +1689,6 @@ struct tcb *tcp;
tprintf("]");
}
}
#if defined LINUX && defined TCB_WAITEXECVE
if (exiting(tcp) && syserror(tcp))
tcp->flags &= ~TCB_WAITEXECVE;
else
tcp->flags |= TCB_WAITEXECVE;
#endif /* LINUX && TCB_WAITEXECVE */
return 0;
}
@ -1720,6 +1714,12 @@ struct tcb *tcp;
if (exiting(tcp) && !syserror(tcp) && followfork)
fixvfork(tcp);
#endif /* SUNOS4 */
#if defined LINUX && defined TCB_WAITEXECVE
if (exiting(tcp) && syserror(tcp))
tcp->flags &= ~TCB_WAITEXECVE;
else
tcp->flags |= TCB_WAITEXECVE;
#endif /* LINUX && TCB_WAITEXECVE */
return 0;
}