projects
/
ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
TESTS: Add a delay at the start of the fork test for a more uniform testing.
[ust.git]
/
tests
/
fork
/
fork.c
diff --git
a/tests/fork/fork.c
b/tests/fork/fork.c
index 5ce3d6d665165c8cd2285377fa63403451116b44..a80518d8154a6de37e59d72bce6494b4b50a5eea 100644
(file)
--- a/
tests/fork/fork.c
+++ b/
tests/fork/fork.c
@@
-34,6
+34,9
@@
int main(int argc, char **argv, char *env[])
printf("Fork test program, parent pid is %d\n", getpid());
trace_mark(ust, before_fork, MARK_NOARGS);
+ /* Sleep here to make sure the consumer is initialized before we fork */
+ sleep(1);
+
result = fork();
if(result == -1) {
perror("fork");
This page took
0.023278 seconds
and
4
git commands to generate.