Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't let processes in the stopped state once detached #78

Open
cedric-vincent opened this issue Dec 11, 2014 · 0 comments
Open

Don't let processes in the stopped state once detached #78

cedric-vincent opened this issue Dec 11, 2014 · 0 comments

Comments

@cedric-vincent
Copy link
Contributor

How to reproduce:

shell-1$ /usr/bin/sleep 999

then in another prooted shell:

shell-2$ gdb -p <pid_of_sleep_999>
[...]
(gdb) x /i $pc
=> 0x7f29946dced0 <__nanosleep_nocancel+7>:     cmp    $0xfffffffffffff001,%rax
(gdb) quit
A debugging session is active.

    Inferior 1 [process 11059] will be detached.

Quit anyway? (y or n) y
Detaching from program: /bin/sleep, process 11059

then, back in shell-1:

shell-1$ /usr/bin/sleep 999

[1]+  Stopped                 /usr/bin/sleep 999
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants