Call the correct kill() and getpid() syscalls rather than _kill() and _getpid().
This commit is contained in:
		
							parent
							
								
									a33473e0a5
								
							
						
					
					
						commit
						075cb488a3
					
				
					 1 changed files with 1 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -9,13 +9,10 @@
 | 
			
		|||
#endif
 | 
			
		||||
#include	<signal.h>
 | 
			
		||||
 | 
			
		||||
int _kill(int pid, int sig);
 | 
			
		||||
int _getpid(void);
 | 
			
		||||
 | 
			
		||||
int
 | 
			
		||||
raise(int sig)
 | 
			
		||||
{
 | 
			
		||||
	if (sig < 0 || sig > _NSIG)
 | 
			
		||||
		return -1;
 | 
			
		||||
	return _kill(_getpid(), sig);
 | 
			
		||||
	return kill(getpid(), sig);
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue