]> granicus.if.org Git - strace/commit
Fix "strace -oFILE -ff -p<nonexistant_pid>" behavior
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 16 Mar 2012 14:15:14 +0000 (15:15 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 16 Mar 2012 14:15:14 +0000 (15:15 +0100)
commit3db3b26101443dccbea959ba0abcbffb240d04e8
tree2ab0e5f20ec1926e9843fba70e0fe97fa2e01196
parent800ec8ffde1296b3f2cfdd838fb08f2ff2bbe946
Fix "strace -oFILE -ff -p<nonexistant_pid>" behavior

* strace.c (newoutf): Set tcp->outf in non-ff mode too.
(alloctcb): This define is removed.
(alloc_tcb): Renamed to alloctcb. Does not set tcp->outf anymore.
Lost 'command_options_parsed' flag parameter.
(startup_attach): Do not say "interrupt to quit" in attach message -
^C does not work in all cases, we mislead users.
Call newoutf(tcp) after successful attach.
(startup_child): Call newoutf(tcp) after successful attach.
(trace): Call newoutf(tcp) when we picked up already attached child.

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