Commit 1a70599
committed
libsubprocess: add flux_subprocess_channel_incref/decref
Problem: It would be useful to take a reference on an output stream
of a subprocess so that stream doesn't generate EOF until all references
have been dropped. This can be used when multiple sources are being
spliced onto a subprocess output to ensure that the subprocess doesn't
register completion until the other outputs have also been fully read.
Add flux_subprocess_channel_incref/decref which wrap the underlying
flux_buffer_read_watcher_incref/decref for the channel in question.1 parent 86c53f5 commit 1a70599
2 files changed
+28
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1232 | 1232 | | |
1233 | 1233 | | |
1234 | 1234 | | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
1235 | 1256 | | |
1236 | 1257 | | |
1237 | 1258 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
493 | 493 | | |
494 | 494 | | |
495 | 495 | | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
496 | 503 | | |
497 | 504 | | |
498 | 505 | | |
| |||
0 commit comments