blob: 8f0baa4ae185333ddddface38d5e401c10f2ba67 (
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.
*
* 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();
}
/* if exec() fails, we may end up taking signals unexpectedly...
* not much we can do about that.
*/
sigprocmask(SIG_SETMASK, &pseudo_saved_sigmask, NULL);
rc = real_execvp(file, argv);
/* return rc;
* }
*/
|