runsvdir: alternative methon of supporting runsvdir-as-init. +66 bytes.

*: s/int/pid_t where appropriate
This commit is contained in:
Denis Vlasenko
2008-11-06 22:39:57 +00:00
parent 70e8f49f71
commit 3854c5ddf4
6 changed files with 46 additions and 33 deletions

View File

@@ -247,7 +247,7 @@ static void update_status(struct svdir *s)
static unsigned custom(struct svdir *s, char c)
{
int pid;
pid_t pid;
int w;
char a[10];
struct stat st;
@@ -584,7 +584,7 @@ int runsv_main(int argc UNUSED_PARAM, char **argv)
continue;
for (;;) {
int child;
pid_t child;
int wstat;
child = wait_any_nohang(&wstat);