summary refs log tree commit diff
path: root/chat.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-02-09 14:09:27 -0500
committerJune McEnroe <june@causal.agency>2020-02-09 14:09:27 -0500
commit5254e1035c5945407ee354276f839426fc17e432 (patch)
tree3dcbba594340dd4f5fd72bac0cced834fd9db1b9 /chat.c
parentAdd M-u (diff)
downloadcatgirl-5254e1035c5945407ee354276f839426fc17e432.tar.gz
catgirl-5254e1035c5945407ee354276f839426fc17e432.zip
Add /help
Now with automatic search! Also had to fix the SIGCHLD handling...
Diffstat (limited to '')
-rw-r--r--chat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/chat.c b/chat.c
index dbad242..ff74485 100644
--- a/chat.c
+++ b/chat.c
@@ -191,6 +191,7 @@ int main(int argc, char *argv[]) {
 		if (signals[SIGINT] || signals[SIGTERM]) break;
 
 		if (signals[SIGCHLD]) {
+			signals[SIGCHLD] = 0;
 			int status;
 			while (0 < waitpid(-1, &status, WNOHANG)) {
 				if (WIFEXITED(status) && WEXITSTATUS(status)) {
@@ -206,6 +207,7 @@ int main(int argc, char *argv[]) {
 					);
 				}
 			}
+			uiShow();
 		}
 
 		if (signals[SIGWINCH]) {