]> granicus.if.org Git - strace/commit
Make interactive-ness directly controllable via command line option
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 29 Jan 2012 15:53:03 +0000 (16:53 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 29 Jan 2012 15:53:03 +0000 (16:53 +0100)
commitb51581e8f0b11d8f1cce055cebb287f728a508a3
tree24e9170acd931b61295a75f02fb0ccb6f65f0b92
parent6703816060c2cf4aaf9c82057ced31c3ba744346
Make interactive-ness directly controllable via command line option

Defaults are often ok, but when they are not, people get confused.
"Why can't I kill strace?" and "Why strace dies on ^C when I want
to _tracee_ to die instead?" are typical complaints.

* strace.c: Replace 'interactive' variable with 'opt_intr' variable.
Define INTR_foo constants for its possible values.
Define 'interactive' as a macro.
(usage): Document -I n option.
(main): Parse -I n option, modify signal handling to accomidate new
-I 1 and -I 4 modes.

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