- 论坛徽章:
- 0
|
谢谢版主。
strace -p question_pro_pid:
write(3, "2007-3-5 15:00:42.639Command is "..., 83) = 83
rt_sigaction(SIGINT, {SIG_IGN}, {0xd92508, ~[ILL ABRT BUS FPE KILL SEGV STOP XCPU XFSZ SYS RTMIN RT_1], SA_RESTART|SA_SIGINFO}, = 0
rt_sigaction(SIGQUIT, {SIG_IGN}, {SIG_IGN}, = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], = 0
clone(child_stack=0, flags=CLONE_PARENT_SETTID|SIGCHLD, parent_tidptr=0xbfb6bf24) = 21307
waitpid(21307, 0xbfb6bf28, 0) = -1 ECHILD (No child processes)
rt_sigaction(SIGINT, {0xd92508, ~[ILL ABRT BUS FPE KILL SEGV STOP XCPU XFSZ SYS RTMIN RT_1], SA_RESTART|SA_SIGINFO}, NULL, = 0
rt_sigaction(SIGQUIT, {SIG_IGN}, NULL, = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, = 0
/**************************************************************/
strace -p mytest_pro_pid:
rt_sigaction(SIGINT, {SIG_IGN}, {SIG_DFL}, = 0
rt_sigaction(SIGQUIT, {SIG_IGN}, {SIG_DFL}, = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], = 0
clone(child_stack=0, flags=CLONE_PARENT_SETTID|SIGCHLD, parent_tidptr=0xbfee1d94) = 21489
waitpid(21489, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 21489
rt_sigaction(SIGINT, {SIG_DFL}, NULL, = 0
rt_sigaction(SIGQUIT, {SIG_DFL}, NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
开始的是我跟踪问题代码的,后面的是我跟踪正常代码(就是几行代码调用一个system返回成功的)。
谢谢 |
|