2007-11-01 Roland McGrath <roland@redhat.com>

* syscall.c (get_scno) [ARM]: Check TCB_WAITEXECVE.
	Reported by Bernhard Fischer <rep.dot.nop@gmail.com>.
This commit is contained in:
Roland McGrath 2007-11-01 21:42:18 +00:00
parent 436d518950
commit 9bc6340d21

View File

@ -1046,6 +1046,14 @@ struct tcb *tcp;
* We only need to grab the syscall number on syscall entry.
*/
if (regs.ARM_ip == 0) {
if (!(tcp->flags & TCB_INSYSCALL)) {
/* Check if we return from execve. */
if (tcp->flags & TCB_WAITEXECVE) {
tcp->flags &= ~TCB_WAITEXECVE;
return 0;
}
}
/*
* Note: we only deal with only 32-bit CPUs here.
*/