Set-cloexec to #t for unrevealed ports.
This commit is contained in:
		
							parent
							
								
									380fee6612
								
							
						
					
					
						commit
						45305e7555
					
				| 
						 | 
					@ -17,7 +17,9 @@
 | 
				
			||||||
	 (ch-number  (channel-os-index ch)))
 | 
						 (ch-number  (channel-os-index ch)))
 | 
				
			||||||
    (if (not (= (fdport-data:revealed fdport*) 0))
 | 
					    (if (not (= (fdport-data:revealed fdport*) 0))
 | 
				
			||||||
	(table-set! fdports ch-number fdport)
 | 
						(table-set! fdports ch-number fdport)
 | 
				
			||||||
	(weak-table-set! fdports ch-number fdport))))
 | 
						(begin 
 | 
				
			||||||
 | 
						  (weak-table-set! fdports ch-number fdport)
 | 
				
			||||||
 | 
						  (%set-cloexec (fdport-data:fd (port-data fdport)) #t)))))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
(define (maybe-fdes->port fdes)
 | 
					(define (maybe-fdes->port fdes)
 | 
				
			||||||
  (weak-table-ref fdports fdes))
 | 
					  (weak-table-ref fdports fdes))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue