[GE issues] [Issue 3061] New - improve Ctrl-Z handling in builtin interactive jobs with "-pty yes" option set
harald.pollinger at sun.com
Wed Jun 17 17:58:59 BST 2009
Summary|improve Ctrl-Z handling in builtin interactive jobs wi
|th "-pty yes" option set
------- Additional comments from pollinger at sunsource.net Wed Jun 17 09:58:58 -0700 2009 -------
Pressing Ctrl-Z in an interactive job with "-pty yes" option set causes a behaviour that is obvious from a technical point of view, but is
not intuitive for the user.
If the user submits
# qrsh -pty yes sleep 3600
and presses Ctrl-Z, the '^Z' character is not interpreted locally, it is sent to the remote host where the pty interprets it and sends a
SIGTSTP signal to the "sleep" command. Because the "sleep" command was started in a shell in command mode ("/bin/sh -c sleep 3600"), this
remote shell doesn't provide a prompt. Therefore it's not possible to pull the "sleep" command back in the foreground. Of course the local
shell doesn't provide a prompt, too, because here is still the "qrsh" command running.
This leaves the user with a local terminal window that seems to accept no input anymore and a remote shell and command that are suspended
and will never finish.
To unsubscribe from this discussion, e-mail: [issues-unsubscribe at gridengine.sunsource.net].
More information about the gridengine-users