Remove signals.
This commit is contained in:
		
							parent
							
								
									d0860c12c0
								
							
						
					
					
						commit
						44fc125b1a
					
				
					 1 changed files with 2 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -44,9 +44,6 @@ main(int argc, char **argv)
 | 
			
		|||
{
 | 
			
		||||
	char *p;
 | 
			
		||||
	int i;
 | 
			
		||||
	static char sigs[] = {
 | 
			
		||||
		SIGHUP, SIGINT, SIGQUIT, SIGTERM, 0
 | 
			
		||||
	};
 | 
			
		||||
 | 
			
		||||
	/* the next test should be performed by the
 | 
			
		||||
	 * preprocessor, but it cannot, so it is performed by the compiler.
 | 
			
		||||
| 
						 | 
				
			
			@ -58,9 +55,8 @@ main(int argc, char **argv)
 | 
			
		|||
	}
 | 
			
		||||
 | 
			
		||||
	progname = *argv++; argc--;
 | 
			
		||||
	for (p = sigs; (i = *p++) != 0; )
 | 
			
		||||
		if (signal(i, SIG_IGN) != SIG_IGN)
 | 
			
		||||
			signal(i, stop_on_signal);
 | 
			
		||||
	if (signal(SIGINT, SIG_IGN) != SIG_IGN)
 | 
			
		||||
		signal(SIGINT, stop_on_signal);
 | 
			
		||||
	for (i = 0; i < argc; i++) {
 | 
			
		||||
		p = argv[i];
 | 
			
		||||
		if (*p++ != '-')
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue