Code

sysdb: Use a pager for displaying query results in interactive mode.
[sysdb.git] / src / tools / sysdb / main.c
index b45ef878873b1b0dc943dbe38efa0555d6d042d2..1f3975a7949b52491d4b0b2fe37660260e556649 100644 (file)
 
 #include <sys/stat.h>
 #include <fcntl.h>
-
+#include <signal.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-
 #include <unistd.h>
 
 #include <sys/types.h>
@@ -358,6 +357,9 @@ main(int argc, char **argv)
                }
        }
 
+       signal(SIGPIPE, SIG_IGN);
+       signal(SIGCHLD, SIG_IGN);
+
        sdb_input_mainloop();
 
        sdb_client_shutdown(input.client, SHUT_WR);