janetsh
janetsh copied to clipboard
Exit traps
Being able to trap on exit is very useful, unfortunately this may require we reengineer janetsh to use an event loop (which may not be too bad, we maybe avoid the unsafe signal handler code too).
An alternative is for exit traps to be pre forked processes.