summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2012-07-09 09:24:46 +0000
committerdavidxu <davidxu@FreeBSD.org>2012-07-09 09:24:46 +0000
commitbe2413da6d7650b12586f84f686f7514f0a6c16b (patch)
tree9c02ec99941b87fa63c34111d5fd647d8713252d /libexec
parent2977d109d83eadd054368540f3b409f99c34ce25 (diff)
downloadFreeBSD-src-be2413da6d7650b12586f84f686f7514f0a6c16b.zip
FreeBSD-src-be2413da6d7650b12586f84f686f7514f0a6c16b.tar.gz
If you have pressed CTRL+Z and a process is suspended, then you use gdb
to attach to the process, it is surprising that the process is resumed without inputting any gdb commands, however ptrace manual said: The tracing process will see the newly-traced process stop and may then control it as if it had been traced all along. But the current code does not work in this way, unless traced process received a signal later, it will continue to run as a background task. To fix this problem, just send signal SIGSTOP to the traced process after we resumed it, this works like that you are attaching to a running process, it is not perfect but better than nothing.
Diffstat (limited to 'libexec')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud