mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 09:02:43 +00:00 
			
		
		
		
	Kernel: Set POLLHUP on WriteHangUp in sys$poll instead of POLLNVAL
POLLNVAL signifies an invalid fd, not a write hang up.
This commit is contained in:
		
							parent
							
								
									020c898290
								
							
						
					
					
						commit
						5ca46abb51
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -97,7 +97,7 @@ ErrorOr<FlatPtr> Process::sys$poll(Userspace<Syscall::SC_poll_params const*> use | |||
|             if (has_flag(fds_entry.unblocked_flags, BlockFlags::WriteError)) | ||||
|                 pfd.revents |= POLLERR; | ||||
|             if (has_flag(fds_entry.unblocked_flags, BlockFlags::WriteHangUp)) | ||||
|                 pfd.revents |= POLLNVAL; | ||||
|                 pfd.revents |= POLLHUP; | ||||
|         } else { | ||||
|             if (has_flag(fds_entry.unblocked_flags, BlockFlags::Read)) { | ||||
|                 VERIFY(pfd.events & POLLIN); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Idan Horowitz
						Idan Horowitz