From: Roland McGrath Date: Mon, 1 Mar 2004 22:03:58 +0000 (+0000) Subject: 2004-03-01 Roland McGrath X-Git-Tag: v4.5.18~626 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b09e33a286635e68a77a7ad19e88bc35db693f7d;p=strace 2004-03-01 Roland McGrath * process.c (sys_execve): Clear instead of set TCB_WAITEXECVE on erring syscall. --- diff --git a/process.c b/process.c index 464ef27a..6d503afa 100644 --- a/process.c +++ b/process.c @@ -1704,7 +1704,10 @@ struct tcb *tcp; } } #if defined LINUX && defined TCB_WAITEXECVE - tcp->flags |= TCB_WAITEXECVE; + if (exiting(tcp) && syserror(tcp)) + tcp->flags &= ~TCB_WAITEXECVE; + else + tcp->flags |= TCB_WAITEXECVE; #endif /* LINUX && TCB_WAITEXECVE */ return 0; }