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

Hangup when running child processes #54

Open
jmiserez opened this issue Feb 27, 2015 · 3 comments
Open

Hangup when running child processes #54

jmiserez opened this issue Feb 27, 2015 · 3 comments

Comments

@jmiserez
Copy link

I am running a gedit instance from a terminal:

$ ps auf
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
jeremie  14619  0.4  0.0  32032  7596 pts/1    Ss   00:37   0:00 bash
jeremie  14680 14.0  0.2 892612 48616 pts/1    Sl+  00:37   0:00  \_ gedit README.md

I then try to grab the underlying bash process:

./reptyr 14619

which works, but in the process it kills the running gedit instance:

$ ./reptyr 14860
[-] Timed out waiting for child stop.
Hangup

Not all commands react to the hangup in the same way though. E.g. sleep keeps on running in the previous terminal. Is the hangup intended?

@jmiserez jmiserez changed the title Does not work with running child processes Hangs up on running child processes Feb 27, 2015
@jmiserez jmiserez changed the title Hangs up on running child processes Hangup when running child processes Feb 27, 2015
@Ulrar
Copy link

Ulrar commented May 24, 2017

So I just tried attaching to a resize2fs a colleague had started, I just got that :

[-] Timed out waiting for child stop.

Nothing else. Does that mean my resize2fs is dead in the background ? Kinda need to know, the client is waiting for this to finish ..

@nelhage
Copy link
Owner

nelhage commented May 24, 2017

@Ulrar does reptyr then exit with an error, ot what do you see after that? That error is itself mostly harmless; It's an attempt to ensure that the shell running the old process (if there is one) behaves properly, but we can often still attach if that fails (and the code attempts to do so)

@Ulrar
Copy link

Ulrar commented May 24, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants