From 7cfcc4fce51ba4ac558ce5299e4eeba38d45d624 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 21 Sep 2001 05:52:27 +0000 Subject: Fix the vfork test so it actually works this time. -Erik --- test/unistd/vfork.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test/unistd') diff --git a/test/unistd/vfork.c b/test/unistd/vfork.c index 73100e427..dca4464e0 100644 --- a/test/unistd/vfork.c +++ b/test/unistd/vfork.c @@ -30,10 +30,14 @@ int main(void) { pid_t pid; int status, wpid; + char *argv[] = { + "/bin/ls", + NULL, + }; if ((pid = vfork()) == 0) { printf("Hi. I'm the child process...\n"); - execvp("/bin/ls",NULL); + execvp(argv[0], argv); _exit(0); } -- cgit v1.2.3