Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
valgrind
/
f38dad945c5b8815916b9e5c288ebb725eaf591c
/
.
/
none
/
tests
/
execve.c
blob: 5f9766695608c861b6f4cf9db587be3c41a7f331 [
file
] [
log
] [
blame
]
#include
<stdio.h>
#include
<stdlib.h>
#include
<unistd.h>
int
main
(
int
argc
,
char
**
argv
)
{
if
(
argc
==
1
)
{
if
(
execve
(
argv
[
0
],
NULL
,
NULL
)
<
0
)
{
perror
(
"execve"
);
exit
(
1
);
}
}
exit
(
0
);
}