From 1fcda3efe6b181f35f8c129748dff851b8fbf4e7 Mon Sep 17 00:00:00 2001 From: Moe Jette <jette1@llnl.gov> Date: Mon, 6 Aug 2007 22:36:08 +0000 Subject: [PATCH] Note srun --pty option not supported on AIX --- doc/man/man1/srun.1 | 3 ++- src/srun/opt.c | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/doc/man/man1/srun.1 b/doc/man/man1/srun.1 index 203e6e327cf..e93827480d4 100644 --- a/doc/man/man1/srun.1 +++ b/doc/man/man1/srun.1 @@ -1,6 +1,6 @@ \." $Id$ .\" -.TH SRUN "1" "July 2007" "srun 1.2" "slurm components" +.TH SRUN "1" "July 2007" "srun 1.3" "slurm components" .SH "NAME" srun \- run parallel jobs @@ -692,6 +692,7 @@ Execute task zero in pseudo terminal. Implicitly sets \fB\-\-unbuffered\fR. Implicitly sets \fB\-\-error\fR and \fB\-\-output\fR to /dev/null for all tasks except task zero. +Not currently supported on AIX platforms. .TP \fB\-Q\fR, \fB\-\-quiet\fR diff --git a/src/srun/opt.c b/src/srun/opt.c index 3bf30bea54d..58aef66a934 100644 --- a/src/srun/opt.c +++ b/src/srun/opt.c @@ -1877,6 +1877,7 @@ static void set_options(const int argc, char **argv) opt.get_user_env = true; break; case LONG_OPT_PTY: +#ifdef HAVE_PTY_H opt.pty = true; opt.unbuffered = true; /* implicit */ if (opt.ifname) @@ -1885,6 +1886,9 @@ static void set_options(const int argc, char **argv) fatal("--output incompatable with --pty option"); if (opt.efname) fatal("--error incompatable with --pty option"); +#else + error("--pty not currently supported on this system type"); +#endif break; default: if (spank_process_option (opt_char, optarg) < 0) { @@ -2689,7 +2693,9 @@ static void _help(void) " --multi-prog if set the program name specified is the\n" " configuration specification for multiple programs\n" " --get-user-env used by Moab. See srun man page.\n" +#ifdef HAVE_PTY_H " --pty run task zero in pseudo terminal\n" +#endif "\n" "Constraint options:\n" " --mincpus=n minimum number of cpus per node\n" -- GitLab