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

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

	rc = real_execv(path, argv);

/*	return rc;
 * }
 */