thughes | 4b9e015 | 2004-06-19 13:02:34 +0000 | [diff] [blame] | 1 | #include <stdio.h> |
2 | #include <stdlib.h> | ||||
3 | #include <unistd.h> | ||||
4 | |||||
5 | int main(int argc, char **argv) | ||||
6 | { | ||||
7 | if (argc == 1) | ||||
8 | { | ||||
thughes | 7f72d01 | 2004-07-21 16:23:38 +0000 | [diff] [blame] | 9 | if (execve(argv[0], NULL, NULL) < 0) |
thughes | 4b9e015 | 2004-06-19 13:02:34 +0000 | [diff] [blame] | 10 | { |
11 | perror("execve"); | ||||
12 | exit(1); | ||||
13 | } | ||||
14 | } | ||||
15 | |||||
16 | exit(0); | ||||
17 | } |