include-afsconfig-before-param-h-20010712
[openafs.git] / src / kauth / test / background.c
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 RCSID("$Header$");
14
15 main (argc, argv)
16   int   argc;
17   char *argv[];
18 {   int pid;
19
20     if (argc == 1) exit (-1);
21     if (pid = fork ()) {                /* parent */
22         printf ("%d", pid);
23         exit (0);
24     }
25     execve (argv[1], argv+1, 0);
26     perror ("execve returned");
27 }