filter_wait(3)

filter_wait3

Wrap waitpid to decode the exitcode and why your filter quit

Usage

#include <util/filter.h>
NEOERR *filter_wait(pid_t pid, int options, int *exitcode);

Arguments

pid -> the process identifier to wait for
options -> the options to pass to waitpid (see wait(2))

Overview

filter_wait wraps the waitpid call and raises an error (with description) if the call failed. Note that if the ask for the exitcode and the process exited with a code other than zero, we don't raise an error. If you don't ask for the exitcode, and it is non-zero, we raise an error

Return value

exitcode -> the exitcode if the process existed normally

Releases

10 releases since Debian 4.0 (Etch); the text changed 2 times.

  1. 4.0
  2. 5.0
  3. 6.0–13

From clearsilver-dev 0.10.5-6+b1 in Debian 13 (Trixie). Parsed by carta from the page's man source.