summaryrefslogtreecommitdiff
path: root/sock.c
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2011-05-27 14:36:01 +0200
committerDenys Vlasenko <dvlasenk@redhat.com>2011-05-27 14:36:01 +0200
commit75422766d51cf96ea081977c9d0b26b2ba1a8ade (patch)
tree7948ef8aff1c5d029eb438a3bc05249ec1c6d424 /sock.c
parent35aba6a8dd87a8d1fd69110d80f98224d1f5b18d (diff)
downloadstrace-75422766d51cf96ea081977c9d0b26b2ba1a8ade.tar.gz
strace-75422766d51cf96ea081977c9d0b26b2ba1a8ade.tar.bz2
strace-75422766d51cf96ea081977c9d0b26b2ba1a8ade.tar.xz
Cleanups on top of "handle SIGTRAP properly" change,
based on Dmitry's comments. * defs.h ([p]error_msg[_and_die]): Declare new functions. * strace.c (SYSCALLTRAP): Rename to syscall_trap_sig. ([p]error_msg[_and_die]): Define new functions. (strace_tracer_pid): New variable, it controls which pid will do cleanup on exit via [p]error_msg_and_die. (main): Set strace_tracer_pid to our initial pid. (startup_attach): Change strace_tracer_pid if we are in -D mode. (test_ptrace_setoptions_for_all): Minor changes to logic, such as better diagnostic messages.
Diffstat (limited to 'sock.c')
0 files changed, 0 insertions, 0 deletions