Skip to content
Snippets Groups Projects
Commit 5e3db1b2 authored by Morris Jette's avatar Morris Jette
Browse files

Treat no controlling terminal on cray as warning

parent dee4155c
No related branches found
No related tags found
No related merge requests found
...@@ -249,10 +249,14 @@ int main(int argc, char *argv[]) ...@@ -249,10 +249,14 @@ int main(int argc, char *argv[])
* after first making sure stdin is not redirected. * after first making sure stdin is not redirected.
*/ */
} else if ((tpgid = tcgetpgrp(STDIN_FILENO)) < 0) { } else if ((tpgid = tcgetpgrp(STDIN_FILENO)) < 0) {
#ifdef HAVE_CRAY
verbose("no controlling terminal");
#else
if (!opt.no_shell) { if (!opt.no_shell) {
error("no controlling terminal: please set --no-shell"); error("no controlling terminal: please set --no-shell");
exit(error_exit); exit(error_exit);
} }
#endif
#ifdef SALLOC_RUN_FOREGROUND #ifdef SALLOC_RUN_FOREGROUND
} else if ((!opt.no_shell) && (pid == getpgrp())) { } else if ((!opt.no_shell) && (pid == getpgrp())) {
if (tpgid == pid) if (tpgid == pid)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment