677261b17d7c7d03eb91d655f9052450307a42f7
8 int main(int argc
, char **argv
, char *env
[])
13 fprintf(stderr
, "usage: fork PROG_TO_EXEC\n");
17 printf("Fork test program, parent pid is %d\n", getpid());
18 trace_mark(ust
, before_fork
, MARK_NOARGS
);
26 char *args
[] = {"fork2", NULL
};
28 printf("Child pid is %d\n", getpid());
30 trace_mark(ust
, after_fork_child
, MARK_NOARGS
);
32 trace_mark(ust
, before_exec
, "pid %d", getpid());
34 result
= execve(argv
[1], args
, env
);
40 trace_mark(ust
, after_exec
, "pid %d", getpid());
43 trace_mark(ust
, after_fork_parent
, MARK_NOARGS
);
This page took 0.055252 seconds and 4 git commands to generate.