diff options
author | Petr Machata <pmachata@redhat.com> | 2011-07-09 11:15:34 +0200 |
---|---|---|
committer | Petr Machata <pmachata@redhat.com> | 2011-10-06 14:17:57 +0200 |
commit | 602330f458e8049ec07685c4e02f0368821a2d2c (patch) | |
tree | 1e288804eac8175e8c0017cc78193d97dc6829d1 /libltrace.c | |
parent | 98f0992f9c3fd5da41a4928407251d9f5a837702 (diff) | |
download | ltrace-602330f458e8049ec07685c4e02f0368821a2d2c.tar.gz |
Handle multi-threaded attach/detach gracefully
Diffstat (limited to 'libltrace.c')
-rw-r--r-- | libltrace.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/libltrace.c b/libltrace.c index caccb48..e731fe1 100644 --- a/libltrace.c +++ b/libltrace.c @@ -54,15 +54,7 @@ signal_exit(int sig) { signal(SIGINT, SIG_IGN); signal(SIGTERM, SIG_IGN); signal(SIGALRM, signal_alarm); - if (opt_p) { - struct opt_p_t *tmp = opt_p; - while (tmp) { - debug(2, "Sending SIGSTOP to process %u\n", tmp->pid); - kill(tmp->pid, SIGSTOP); - tmp = tmp->next; - } - } - alarm(1); + //alarm(1); } static void |