]> granicus.if.org Git - strace/commit
Forbid using mutually exclusive options -D and -p together
authorWang Chao <wang.chao@cn.fujitsu.com>
Thu, 5 Aug 2010 06:30:11 +0000 (14:30 +0800)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 9 Aug 2010 21:28:35 +0000 (21:28 +0000)
commitd322a4bbe118642c4c9b170451a601a1e80b72d6
treede454ea8540c8030b29fd0add5eb7bd1538d0813
parent670f51126a7a949e39e24b3cffb55f1c490f581f
Forbid using mutually exclusive options -D and -p together

If we use -D and -p option together to trace a multi-thread program, in
addition to the main thread, other threads could not be traced even if we
present -f option. Moreover, when executing 'strace -D -p <non-exist pid>',
strace could not terminate normally.

* strace.c (main): Check it.

Signed-off-by: Wang Chao <wang.chao@cn.fujitsu.com>
strace.c