flux_shell_task_channel_subscribe(3)¶
SYNOPSIS¶
#include <flux/shell.h>
int flux_shell_task_channel_subscribe (flux_shell_task_t *task,
const char *channel,
flux_shell_task_io_f cb,
void *arg);
DESCRIPTION¶
Call cb
when shell task output channel name
is ready for reading.
Callback can then call flux_shell_task_get_subprocess()
and use
flux_subprocess_read()
or getline()
on the result to get
available data. Only one subscriber per stream is allowed.
RETURN VALUE¶
Returns 0 on success and -1 on error.
Not yet implemented.
ERRORS¶
- EEXIST
flux_shell_task_channel_subscribe()
is called on a stream with an existing subscriber