mirror of
				https://github.com/markqvist/rnsh.git
				synced 2025-10-30 22:09:00 -04:00 
			
		
		
		
	Support for pipes. #3
Connects pipes on the listener child process the same way they are connected on the initiator--any combination of stdin, stdout, and stderr could be connected to a pipe. Any one of those not connected to a pipe will be connected to a pty.
This commit is contained in:
		
							parent
							
								
									27664df0b3
								
							
						
					
					
						commit
						ebdcb50265
					
				
					 4 changed files with 262 additions and 97 deletions
				
			
		|  | @ -37,7 +37,11 @@ class SubprocessReader(contextlib.AbstractContextManager): | |||
|                                                        env=self.env, | ||||
|                                                        loop=self.loop, | ||||
|                                                        stdout_callback=self._stdout_cb, | ||||
|                                                        terminated_callback=self._terminated_cb) | ||||
|                                                        terminated_callback=self._terminated_cb, | ||||
|                                                        stderr_callback=self._stdout_cb, | ||||
|                                                        stdin_is_pipe=False, | ||||
|                                                        stdout_is_pipe=False, | ||||
|                                                        stderr_is_pipe=False) | ||||
| 
 | ||||
|     def _stdout_cb(self, data): | ||||
|         self._log.debug(f"_stdout_cb({data})") | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Aaron Heise
						Aaron Heise