summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-09-21 05:52:27 +0000
committerEric Andersen <andersen@codepoet.org>2001-09-21 05:52:27 +0000
commit7cfcc4fce51ba4ac558ce5299e4eeba38d45d624 (patch)
tree891a1a5fe7334dde8da4a2f43a11c1b8208478de
parent18660a34b0ec692fb54127131f9991be45e1bda8 (diff)
Fix the vfork test so it actually works this time.
-Erik
-rw-r--r--test/unistd/vfork.c6
1 files changed, 5 insertions, 1 deletions
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);
}