repo.or.cz
/
valgrind.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
regtest: broaden none/tests/linux/bug498317 suppression for PPC
[valgrind.git]
/
none
/
tests
/
track-fds-exec-children.c
blob
7209ee73d5b7dacbe173d61a0d732cc5b0414327
1
#include <unistd.h>
2
#include <sys/wait.h>
3
4
int
main
()
5
{
6
pid_t pid
=
fork
();
7
if
(
pid
==
0
)
8
execlp
(
"true"
,
"true"
,
NULL
);
9
10
// Wait till true succeeds
11
wait
(
NULL
);
12
return
0
;
13
}