]> granicus.if.org Git - strace/commit
Fix indefinite hang on no-mmu systems
authorMike Frysinger <vapier@gentoo.org>
Thu, 5 Apr 2012 05:52:25 +0000 (01:52 -0400)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 5 Apr 2012 14:53:49 +0000 (14:53 +0000)
commit7ff5ed932568a8049c3ca134da374f64c3e255ce
treee273f6122be6a064c61be0d0111a61d604c1d661
parentf36ede69f7bceba461541f440e6d562a6d2ffa83
Fix indefinite hang on no-mmu systems

The ptrace setoptions code will fork a child which goes to sleep and
expects the parent to continue on to do tests.  Unfortunately, this
does not work on no-mmu systems as fork() is actually vfork() and any
vforked children will hang the parent until it exits or execs.

We might be able to make this test work on no-mmu systems with a bit
of work, but easier to just disable this for the release so it works
now.

* strace.c (test_ptrace_setoptions_for_all): Return if strace_vforked.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
strace.c