File: child.h

package info (click to toggle)
smail 3.2.0.102-1
  • links: PTS
  • area: main
  • in suites: slink
  • size: 4,228 kB
  • ctags: 3,924
  • sloc: ansic: 41,366; sh: 3,434; makefile: 2,349; awk: 689; perl: 598; yacc: 427; sed: 2
file content (29 lines) | stat: -rw-r--r-- 992 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* @(#) child.h,v 1.4 1998/04/12 01:59:48 woods Exp */

/*
 *    Copyright (C) 1987, 1988 Ronald S. Karr and Landon Curt Noll
 *    Copyright (C) 1992  Ronald S. Karr
 * 
 * See the file COPYING, distributed with smail, for restriction
 * and warranty information.
 */

/*
 * child.h:
 *	interface file for the child process control functions in child.c.
 */

/* bit values for the flag parameter to open_child */
#define CHILD_DUPERR	0x0001		/* duplicate stdout to stderr */
#define CHILD_CLSERR	0x0002		/* close stderr and open on /dev/null */
#define CHILD_DEVNULL	0x0004		/* use "/dev/null" */
#define CHILD_RETRY	0x0008		/* retry the fork() if it failes */
#define CHILD_MINENV	0x0010		/* supply a default minimum env */
#define CHILD_NOCLOSE	0x0020		/* don't close extraneous fd's */

#ifndef	FORK_RETRIES
# define FORK_RETRIES	10		/* default, 10 retries */
#endif	/* FORK_RETRIES */
#ifndef	FORK_INTERVAL
# define FORK_INTERVAL	30		/* default, 30 seconds */
#endif	/* FORK_INTERVAL */