Added close gadget and increased hight of default con window.
[AROS.git] / tools / collect-aros / docommand-spawn.c
blob577fab2a9716fce09a918c915bf3418cf53da673
1 #include <process.h>
2 #include <errno.h>
3 #include <string.h>
4 #include <stdlib.h>
6 #include "docommand.h"
7 #include "misc.h"
9 static void _docommandv(const char *command, char *argv[], int do_path)
11 int ret = (do_path ? spawnvp : spawnv)(P_WAIT, command, argv);
12 if (ret == -1)
14 fatal(command, strerror(errno));
16 if (ret > 0)
18 exit(EXIT_FAILURE);
22 void docommandv(const char *command, char *argv[])
24 _docommandv(command, argv, 0);
27 void docommandvp(const char *command, char *argv[])
29 set_compiler_path();
30 _docommandv(command, argv, 1);