aboutsummaryrefslogtreecommitdiffstats
path: root/ports/common/guts/fork.c
blob: 4f5f4e45f2bb6b2748af903210e8b1a0e4ee4150 (plain)
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
/* 
 * Copyright (c) 2008-2010 Wind River Systems; see
 * guts/COPYRIGHT for information.
 *
 * SPDX-License-Identifier: LGPL-2.1-only
 *
 * static int
 * wrap_fork(void) {
 *	int rc = -1;
 */
	rc = real_fork();
	/* special case: we may want to enable or disable
	 * pseudo in the child process
	 */
	if (rc == 0) {
		pseudo_setupenv();
		if (!pseudo_has_unload(NULL)) {
			pseudo_reinit_libpseudo();
		} else {
			pseudo_dropenv();
		}
	}
/*	return rc;
 * }
 */