dpkg 1.22.7-3-g89f48
Loading...
Searching...
No Matches
Functions | Variables
subproc.h File Reference

(b95c96c27)

#include <sys/types.h>
#include <dpkg/macros.h>
Include dependency graph for subproc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void subproc_signals_ignore (const char *name)
 
void subproc_signals_cleanup (int argc, void **argv)
 
void subproc_signals_restore (void)
 
pid_t subproc_fork (void)
 
int subproc_reap (pid_t pid, const char *desc, enum subproc_flags flags)
 

Variables

enum DPKG_ATTR_ENUM_FLAGS subproc_flags
 
 SUBPROC_NORMAL = 0
 Default subprocess flags.
 
 SUBPROC_WARN = DPKG_BIT(0)
 Emit a warning instead of an error.
 
 SUBPROC_NOPIPE = DPKG_BIT(1)
 Ignore SIGPIPE, and make it return 0.
 
 SUBPROC_NOCHECK = DPKG_BIT(2)
 Do not check the subprocess status.
 
 SUBPROC_RETERROR = DPKG_BIT(3)
 Do not emit errors, just return the exit status.
 
 SUBPROC_RETSIGNO = DPKG_BIT(3)
 Do not emit errors, just return the signal number.
 

Variable Documentation

◆ SUBPROC_NOCHECK

SUBPROC_NOCHECK = DPKG_BIT(2)

Do not check the subprocess status.

Referenced by subproc_reap().

◆ SUBPROC_NOPIPE

SUBPROC_NOPIPE = DPKG_BIT(1)

Ignore SIGPIPE, and make it return 0.

Referenced by extracthalf(), pager_reap(), and process_archive().

◆ SUBPROC_NORMAL

SUBPROC_NORMAL = 0

Default subprocess flags.

◆ SUBPROC_RETERROR

SUBPROC_RETERROR = DPKG_BIT(3)

Do not emit errors, just return the exit status.

◆ SUBPROC_RETSIGNO

SUBPROC_RETSIGNO = DPKG_BIT(3)

Do not emit errors, just return the signal number.

◆ SUBPROC_WARN

SUBPROC_WARN = DPKG_BIT(0)

Emit a warning instead of an error.

Referenced by maintscript_fallback().