Commit | Line | Data |
---|---|---|
805e021f CE |
1 | /* |
2 | * Copyright 2000, International Business Machines Corporation and others. | |
3 | * All Rights Reserved. | |
4 | * | |
5 | * This software has been released under the terms of the IBM Public | |
6 | * License. For details, see the LICENSE file in the top-level source | |
7 | * directory or online at http://www.openafs.org/dl/license10.html | |
8 | */ | |
9 | ||
10 | #include <afsconfig.h> | |
11 | #include <afs/param.h> | |
12 | ||
13 | ||
14 | main(argc, argv) | |
15 | int argc; | |
16 | char *argv[]; | |
17 | { | |
18 | int pid; | |
19 | ||
20 | if (argc == 1) | |
21 | exit(-1); | |
22 | if (pid = fork()) { /* parent */ | |
23 | printf("%d", pid); | |
24 | exit(0); | |
25 | } | |
26 | execve(argv[1], argv + 1, 0); | |
27 | perror("execve returned"); | |
28 | } |