aboutsummaryrefslogtreecommitdiffstats
path: root/guts/execvp.c
blob: 1ab34d32c9e3be6748144b3afb425f64fe576a53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* 
 * Copyright (c) 2008-2010 Wind River Systems; see
 * guts/COPYRIGHT for information.
 *
 * static int
 * wrap_execvp(const char *file, char *const *argv) {
 *	int rc = -1;
 */

	if (!pseudo_get_value("PSEUDO_RELOADED"))
		pseudo_setupenv();
	else {
		pseudo_setupenv();
		pseudo_dropenv();
	}

	rc = real_execvp(file, argv);

/*	return rc;
 * }
 */