Rename runcmd() to spawn()

This commit is contained in:
sin 2014-01-08 20:27:27 +00:00
parent 574e3d48ed
commit 2d64fa9483

View File

@ -21,7 +21,7 @@ static int parseescape(void);
static char *poparg(void); static char *poparg(void);
static void deinputstr(char *); static void deinputstr(char *);
static void waitchld(void); static void waitchld(void);
static void runcmd(void); static void spawn(void);
static char **cmd; static char **cmd;
static char *argb; static char *argb;
@ -94,7 +94,7 @@ main(int argc, char *argv[])
i++; i++;
} }
cmd[i] = NULL; cmd[i] = NULL;
if (i == 1 && rflag == 1); else runcmd(); if (i == 1 && rflag == 1); else spawn();
for (; i >= 0; i--) for (; i >= 0; i--)
free(cmd[i]); free(cmd[i]);
} while (arg); } while (arg);
@ -248,7 +248,7 @@ waitchld(void)
} }
static void static void
runcmd(void) spawn(void)
{ {
pid_t pid; pid_t pid;
int saved_errno; int saved_errno;