]> granicus.if.org Git - strace/commit
Make threaded execve handling code more reabable and somewhat simpler
authorDenys Vlasenko <vda.linux@googlemail.com>
Thu, 22 Mar 2012 08:35:51 +0000 (09:35 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 22 Mar 2012 08:35:51 +0000 (09:35 +0100)
commit8511f2a1f02a31f66eab86bf95dee1636fb39076
tree6af36d252949a7c2d6df0288804476a6dcecef78
parent513e9c23df4713c97c25f862ee9c140f508c5a2c
Make threaded execve handling code more reabable and somewhat simpler

* strace.c (droptcb): Remove outfname check in "outfname && followfork >= 2" -
with recent changes, followfork >= 2 check guarantees that outfile
was specified, and _is already opened_.
(trace): Move tcb existence check before threaded execve handling.
This allows to remove tcp != NULL checks in threaded execve handling.
Rewrite threaded execve handling code to be less indented,
keeping the same logic.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
strace.c