Remote signals
Closed this issue · 2 comments
offlinemark commented
For commands like ping, it would be cool to have them not break the client (currently running a command that doesn't exit just locks up the client). We can catch a sigint (ctrl-c) in the server and send a special message to the client that's somehow listening for that which will send the corresponding sigint to whatever process it forked
offlinemark commented
server listens for ctrl-c and stops receiving, sends special message over to client
client needs to be reworked. separate thread/process for execution/sending lines, and for listening for potential signals.
offlinemark commented
use select to multiplex the socket and process file objects