flux_shell_task_subprocess(3)

SYNOPSIS

#include <flux/shell.h>

flux_subprocess_t *flux_shell_task_subprocess (flux_shell_task_t *task);

flux_cmd_t *flux_shell_task_cmd (flux_shell_task_t *task);

Link with -lflux-core.

DESCRIPTION

flux_shell_task_subprocess() returns the subprocess for a shell task in var:task_fork and task_exit callbacks.

flux_shell_task_cmd() returns the cmd structure for a shell task.

RETURN VALUE

flux_shell_task_subprocess() returns the proc field of the task, and flux_shell_task_cmd() returns the cmd field, or NULL on error.

ERRORS

EINVAL

task is NULL.

RESOURCES

Flux: http://flux-framework.org

Flux RFC: https://flux-framework.readthedocs.io/projects/flux-rfc