Rev 4621 | Rev 4662 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 4621 | Rev 4622 | ||
|---|---|---|---|
| Line 39... | Line 39... | ||
| 39 | #include <ipc/ipc.h> |
39 | #include <ipc/ipc.h> |
| 40 | #include <vfs/vfs.h> |
40 | #include <vfs/vfs.h> |
| 41 | #include <bool.h> |
41 | #include <bool.h> |
| 42 | #include <errno.h> |
42 | #include <errno.h> |
| 43 | #include <fcntl.h> |
43 | #include <fcntl.h> |
| - | 44 | #include <sys/stat.h> |
|
| 44 | #include <task.h> |
45 | #include <task.h> |
| 45 | #include <malloc.h> |
46 | #include <malloc.h> |
| 46 | #include <macros.h> |
47 | #include <macros.h> |
| 47 | #include <string.h> |
48 | #include <string.h> |
| 48 | #include <devmap.h> |
49 | #include <devmap.h> |
| Line 124... | Line 125... | ||
| 124 | } |
125 | } |
| 125 | 126 | ||
| 126 | static void spawn(char *fname) |
127 | static void spawn(char *fname) |
| 127 | { |
128 | { |
| 128 | char *argv[2]; |
129 | char *argv[2]; |
| - | 130 | struct stat s; |
|
| - | 131 | ||
| - | 132 | if (stat(fname, &s) == ENOENT) |
|
| - | 133 | return; |
|
| 129 | 134 | ||
| 130 | printf(NAME ": Spawning %s\n", fname); |
135 | printf(NAME ": Spawning %s\n", fname); |
| 131 | 136 | ||
| 132 | argv[0] = fname; |
137 | argv[0] = fname; |
| 133 | argv[1] = NULL; |
138 | argv[1] = NULL; |
| Line 140... | Line 145... | ||
| 140 | { |
145 | { |
| 141 | char *argv[2]; |
146 | char *argv[2]; |
| 142 | task_id_t id; |
147 | task_id_t id; |
| 143 | task_exit_t texit; |
148 | task_exit_t texit; |
| 144 | int rc, retval; |
149 | int rc, retval; |
| - | 150 | struct stat s; |
|
| - | 151 | ||
| - | 152 | if (stat(fname, &s) == ENOENT) |
|
| - | 153 | return; |
|
| 145 | 154 | ||
| 146 | printf(NAME ": Starting %s\n", fname); |
155 | printf(NAME ": Starting %s\n", fname); |
| 147 | 156 | ||
| 148 | argv[0] = fname; |
157 | argv[0] = fname; |
| 149 | argv[1] = NULL; |
158 | argv[1] = NULL; |