Skip to content
Snippets Groups Projects
Commit 5ed2731c authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Transfer exceptions from one process to another. Rework the spawn

API.
parent 26029388
Branches
Tags
No related merge requests found
2003-10-26 Per Cederqvist <ceder@ceder.dyndns.org>
Rework the spawn API.
* pcl_expect/spawn.py: Some documentation added.
(stty_init): Change default value to False instead of None.
(__use): New function.
(_inherit_stty): New function.
(_stty_init): New function.
(_spawn): New arguments: inherit_stty, stty_init. Only inherit
stty settings if stdin is a tty. If an exception occurs in the
child, transfer it to the parent as a remote_exception.Remote
object.
(Spawn.__init__): New optional arguments: inherit_stty, stty_init.
(spawn2): Pass all arguments to the Spawn constructor.
Transfer exceptions from one process to another.
* pcl_expect/remote_exception.py: New file.
(Remote): New class.
(Remote.__init__): New method.
(serialize): New function.
(re_raise): New function.
2003-10-25 Per Cederqvist <ceder@ceder.dyndns.org> 2003-10-25 Per Cederqvist <ceder@ceder.dyndns.org>
Write more doc. Write more doc.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment