Permalink
Please sign in to comment.
Browse files
Change the signal handling strategy to avoid race conditions.
Instead of running the handler directly, the Python signal handler queues a node in ex.nodes_to_run. Then the main loop checks this on every invocation of _Execute(). demo/trap.sh: expose EINTR / Ctrl-C problems with OSH. OSH traps only work for basic use cases right now, since we're building on top of Python's signal module for now. Addresses issue #60.
- Loading branch information...
Showing
with
86 additions
and 27 deletions.
- +12 −17 core/builtin.py
- +21 −10 core/cmd_exec.py
- +53 −0 demo/trap.sh
0 comments on commit
8dc203a