proot icon indicating copy to clipboard operation
proot copied to clipboard

Don't let processes in the stopped state once detached

Open cedric-vincent opened this issue 9 years ago • 0 comments

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

cedric-vincent avatar Dec 11 '14 11:12 cedric-vincent