Closed offlinemark closed 9 years ago
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.
use select to multiplex the socket and process file objects
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