mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 21:51:50 +00:00 
			
		
		
		
	 51ee270876
			
		
	
	
		51ee270876
		
	
	
	
	
		
			
			the C code, using pipe2() when available. Adds unittests for close_fds and cloexec behaviors.
		
			
				
	
	
		
			7 lines
		
	
	
	
		
			129 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			7 lines
		
	
	
	
		
			129 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| """When called as a script, consumes the input"""
 | |
| 
 | |
| import sys
 | |
| 
 | |
| if __name__ = "__main__":
 | |
|     for line in sys.stdin:
 | |
|         pass
 |