Some more info:
I tried to do some debugging with strace:

# dibbler-info start

# ps -Lf -C dibbler-client
UID        PID  PPID   LWP  C NLWP STIME TTY          TIME CMD
root      4590     1  4590  0    1 20:10 ?        00:00:00 dibbler-client
    start

# strace dibbler-client stop &
  ...

write(3, "2012.06.03 20:10:49 Client Notic"..., 103) = 103
stat("/var/lib/dibbler/client.pid", {st_mode=S_IFREG|0640, st_size=4, ...}) = 
0
open("/var/lib/dibbler/client.pid", O_RDONLY) = 4
read(4, "4590", 8191)                   = 4
read(4, "", 8191)                       = 0
close(4)                                = 0
ptrace(PTRACE_ATTACH, 4590, 0, 0)       = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
write(1, "Sending TERM signal to process 4"..., 36Sending TERM signal to 
process 4590
) = 36
kill(4590, SIGTERM)                     = 0
write(1, "Waiting for signalled process te"..., 45Waiting for signalled 
process termination... ) = 45
wait4(4590, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGSTOP}], 0, NULL) = 4590
ptrace(PTRACE_CONT, 4590, 0, SIGSTOP)   = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
wait4(4590, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGSTOP}], 0, NULL) = 4590
ptrace(PTRACE_CONT, 4590, 0, SIGSTOP)   = 0
wait4(4590,

// here the trace hangs until I issue '# kill 4590' from another terminal,
// then it continues with

            [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTERM}], 0, NULL) = 4590
--- SIGCHLD (Child exited) @ 0 (0) ---
ptrace(PTRACE_CONT, 4590, 0, SIGTERM)   = 0
wait4(4590, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGCHLD}], 0, NULL) = 4590
--- SIGCHLD (Child exited) @ 0 (0) ---
ptrace(PTRACE_CONT, 4590, 0, SIGCHLD)   = 0
wait4(4590, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGCHLD}], 0, NULL) = 4590
--- SIGCHLD (Child exited) @ 0 (0) ---
ptrace(PTRACE_CONT, 4590, 0, SIGCHLD)   = 0
wait4(4590, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 4590
--- SIGCHLD (Child exited) @ 0 (0) ---
ptrace(PTRACE_CONT, 4590, 0, SIG_0)     = -1 ESRCH (No such process)
write(1, "Done.\n", 6Done.
)                  = 6
close(3)                                = 0
munmap(0x7f0a452be000, 4096)            = 0
exit_group(0)                           = ?



 



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to