mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 08:32:43 +00:00 
			
		
		
		
	Kernel+LibC+UserspaceEmulator: Bring back sys$dup2()
This is racy in userspace and non-racy in kernelspace so let's keep it in kernelspace. The behavior change where CLOEXEC is preserved when dup2() is called with (old_fd == new_fd) was good though, let's keep that.
This commit is contained in:
		
							parent
							
								
									bf247fb45f
								
							
						
					
					
						commit
						65f2270232
					
				
					 7 changed files with 59 additions and 14 deletions
				
			
		|  | @ -86,6 +86,7 @@ namespace Kernel { | |||
|     S(getpgrp)                \ | ||||
|     S(fork)                   \ | ||||
|     S(execve)                 \ | ||||
|     S(dup2)                   \ | ||||
|     S(sigaction)              \ | ||||
|     S(umask)                  \ | ||||
|     S(getgroups)              \ | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling