Commit 853c7e3
job-exec: do not try to re-send J to multi-user job with no stdin
Problem: When reattaching to a multiuser sdexec job, sdexec always
tries to re-send the input to the IMP (J), even though the stdin fd
is set to -1. This generates EBADF and a fatal error for the job.
Only send input to the IMP if the current stdin fd is valid. This
effectively avoids resend of J for jobs that were already started.1 parent 08ae1cd commit 853c7e3
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
367 | | - | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
368 | 371 | | |
369 | 372 | | |
370 | 373 | | |
| |||
0 commit comments