diff cmd.h @ 19:5c6155c8e9b6

Handle signals Handled signals are generally blocked and only unblocked when doing blocking I/O, i.e. either when reading commands or printing results. A (possibly queued) signal will then interrupt I/O and can be dealt with in the main loop.
author Guido Berhoerster <guido+pwm@berhoerster.name>
date Fri, 01 Sep 2017 22:33:41 +0200
parents a07665727c19
children
line wrap: on
line diff
--- a/cmd.h	Thu Aug 24 13:10:56 2017 +0200
+++ b/cmd.h	Fri Sep 01 22:33:41 2017 +0200
@@ -31,6 +31,7 @@
 	CMD_STATUS,
 	CMD_ERR,
 	CMD_USAGE,
+	CMD_SIGNAL,
 	CMD_QUIT
 };