mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 15:42:44 +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)) |             if (has_flag(fds_entry.unblocked_flags, BlockFlags::WriteError)) | ||||||
|                 pfd.revents |= POLLERR; |                 pfd.revents |= POLLERR; | ||||||
|             if (has_flag(fds_entry.unblocked_flags, BlockFlags::WriteHangUp)) |             if (has_flag(fds_entry.unblocked_flags, BlockFlags::WriteHangUp)) | ||||||
|                 pfd.revents |= POLLNVAL; |                 pfd.revents |= POLLHUP; | ||||||
|         } else { |         } else { | ||||||
|             if (has_flag(fds_entry.unblocked_flags, BlockFlags::Read)) { |             if (has_flag(fds_entry.unblocked_flags, BlockFlags::Read)) { | ||||||
|                 VERIFY(pfd.events & POLLIN); |                 VERIFY(pfd.events & POLLIN); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Idan Horowitz
						Idan Horowitz