David Wilson
3aa5c4c53d
issue #373 : parse the child process wait status
...
Don't log the raw waitpid() result, convert it to a useful string first.
6 years ago
David Wilson
c4c6ae88a4
parent: raise a descriptive error when openpty fails.
6 years ago
David Wilson
06e2e846c5
parent: don't generate illegal default remote names.
...
getpass.getuser() output may contain slashes, which must be avoided as
they break virtualenv when present in argv[0].
Closes #344 .
6 years ago
David Wilson
4ff47d6a93
parent: more 2/3x format fixes
6 years ago
David Wilson
6b4e047017
tests: 3.x parent_test fixes.
6 years ago
David Wilson
00edf0d66d
core: have ExternalContext accept a config dict rather than kwargs.
...
The parameter lists had gotten out of control.
7 years ago
David Wilson
7c5bbc5168
setns: support changing user.
...
To match existing third party plugin.
7 years ago
David Wilson
1be03eb458
parent: change create_child interface.
...
To allow for additional arguments.
7 years ago
David Wilson
e56608ab91
parent: don't wait for SIGTERM to complete.
7 years ago
David Wilson
9fe14e841c
parent: reap the child process if connection fails
...
For example if no response is received in :attr:`connect_timeout`
seconds, the child would be left running.
7 years ago
David Wilson
e43c6c531b
Mostly implement hybrid TTY/socket mode for sudo and SSH.
...
Presently there is still no mechanism to add :attr:`tty_stream` to the
multiplexer after connection is successful, but for now it's not
expected that anything will be logged to it anyway.
Closes #148 .
7 years ago
David Wilson
c6284e00e9
Use subprocess to start child processes; closes #185 .
7 years ago
David Wilson
4c433dbed1
parent_test: Add explanation.
7 years ago
David Wilson
bde1778373
tests: merge tty_create_child() test into parent_test and fix hang
7 years ago
David Wilson
48351a1889
issue #155 : parent: support Context.shutdown(), reap children on exit.
...
This permits graceful shutdown of individual contexts, without tearing
down everything.
Update mitogen.parent.Stream to also wait for the child to exit, to
prevent the buildup of zombie processes. This introduces a blocking wait
for process exit on the Broker thread, let's see if we can get away with
it. Chances are reasonable that it'll cause needless hangs on heavily
loaded machines.
7 years ago
Alex Willmer
f4405c6bbc
Split IterReadTest & WriteAllTest into test_parent
...
This matches their respective functions under test, which now reside in
mitogen.parent.
7 years ago