tgrekov-pipex
HIVE pipex May 2024
Loading...
Searching...
No Matches
wait_all.c File Reference

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* wait_all.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tgrekov <tgrekov@student.hive.fi> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/05/02 08:09:05 by tgrekov #+# #+# */
/* Updated: 2024/05/02 10:50:17 by tgrekov ### ########.fr */
/* */
/* ************************************************************************** */

Definition in file wait_all.c.

#include <sys/wait.h>
Include dependency graph for wait_all.c:

Go to the source code of this file.

Functions

int wait_all (int *pids, int n, int override)
 Wait for first n processes in pids to change state and return the last process's exit code, if it could be resolved, or 1.
 

Function Documentation

◆ wait_all()

int wait_all ( int *  pids,
int  n,
int  override 
)

Wait for first n processes in pids to change state and return the last process's exit code, if it could be resolved, or 1.

Parameters
pidsProcess ids to wait on
nNumber of process ids
overrideOverrides return value if non-zero
Return values
intLast process's exit code or 1

Definition at line 31 of file wait_all.c.