Commit 67cc8b2
committed
flux-job: attach: avoid watching output eventlog twice
Problem: There is a potential for flux-job to call the function
attach_output_start() twice when pty.capture and pty.interactive are
enabled for the job. This causes the output eventlog to be watched
twice and duplicates lines of ouput.
Make attach_output_start() idempotent, i.e. don't do anything if the
output eventlog is already being watched.1 parent 9ddb344 commit 67cc8b2
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1933 | 1933 | | |
1934 | 1934 | | |
1935 | 1935 | | |
| 1936 | + | |
| 1937 | + | |
| 1938 | + | |
1936 | 1939 | | |
1937 | 1940 | | |
1938 | 1941 | | |
| |||
0 commit comments