[GE issues] [Issue 3061] New - improve Ctrl-Z handling in builtin interactive jobs with "-pty yes" option set

pollinger harald.pollinger at sun.com
Wed Jun 17 17:58:59 BST 2009


http://gridengine.sunsource.net/issues/show_bug.cgi?id=3061
                 Issue #|3061
                 Summary|improve Ctrl-Z handling in builtin interactive jobs wi
                        |th "-pty yes" option set
               Component|gridengine
                 Version|6.2
                Platform|All
                     URL|
              OS/Version|All
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|ENHANCEMENT
                Priority|P4
            Subcomponent|clients
             Assigned to|roland
             Reported by|pollinger






------- 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.

------------------------------------------------------
http://gridengine.sunsource.net/ds/viewMessage.do?dsForumId=36&dsMessageId=202140

To unsubscribe from this discussion, e-mail: [issues-unsubscribe at gridengine.sunsource.net].



More information about the gridengine-users mailing list