]> pd.if.org Git - startuptools/blob - chdir.c
startup program improvements
[startuptools] / chdir.c
1 /*
2  * daemonize and exec
3  */
4
5 #include <stdlib.h>
6 #include <unistd.h>
7
8 #include "exec.c"
9
10 int main(int ac, char *av[]) {
11         if (chdir(av[1]) < 0) {
12                 exit(EXIT_FAILURE);
13         }
14
15         do_exec(2, ac, av);
16
17         /* shouldn't get here... */
18         return EXIT_FAILURE;
19 }