Mark filp as in use on fd dup'ing
This commit is contained in:
		
							parent
							
								
									71533c8a83
								
							
						
					
					
						commit
						9f9f893123
					
				@ -168,6 +168,7 @@ PUBLIC int do_fcntl()
 | 
			
		||||
	else if ((r = get_fd(m_in.addr, 0, &new_fd, NULL)) == OK) {
 | 
			
		||||
		f->filp_count++;
 | 
			
		||||
		fp->fp_filp[new_fd] = f;
 | 
			
		||||
		FD_SET(new_fd, &fp->fp_filp_inuse);
 | 
			
		||||
		r = new_fd;
 | 
			
		||||
	}
 | 
			
		||||
	break;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user