forked from Bananymous/banan-os
				
			Kernel: Cleanup sys_wait sleep/signal handling
This commit is contained in:
		
							parent
							
								
									05836fab4c
								
							
						
					
					
						commit
						a347ceba74
					
				|  | @ -806,13 +806,10 @@ namespace Kernel | |||
| 				return exited_pid; | ||||
| 			} | ||||
| 
 | ||||
| 			if (Thread::current().is_interrupted_by_signal()) | ||||
| 				return BAN::Error::from_errno(EINTR); | ||||
| 
 | ||||
| 			if (options & WNOHANG) | ||||
| 				return 0; | ||||
| 
 | ||||
| 			m_child_exit_blocker.block_indefinite(&m_process_lock); | ||||
| 			TRY(Thread::current().block_or_eintr_indefinite(m_child_exit_blocker, &m_process_lock)); | ||||
| 		} | ||||
| 	} | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue