runsvdir: alternative methon of supporting runsvdir-as-init. +66 bytes.
*: s/int/pid_t where appropriate
This commit is contained in:
		@@ -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);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user