chiark / gitweb /
Abolish shared libdisorder; now we use a static one.
[disorder] / disobedience / disobedience.c
index 9ee7b3352c2bfefa19a1f04c01d5f62a6dc5f56e..793525c57cb379a78fed49d1f409d5c66c80a5f0 100644 (file)
@@ -335,13 +335,15 @@ int main(int argc, char **argv) {
     default: fatal(0, "invalid option");
     }
   }
+  signal(SIGPIPE, SIG_IGN);
   /* create the event loop */
   D(("create main loop"));
   mainloop = g_main_loop_new(0, 0);
   if(config_read()) fatal(0, "cannot read configuration");
   /* create the clients */
-  client = gtkclient();
-  logclient = gtkclient();
+  if(!(client = gtkclient())
+     || !(logclient = gtkclient()))
+    return 1;                           /* already reported an error */
   disorder_eclient_log(logclient, &gdisorder_log_callbacks, 0);
   /* periodic operations (e.g. expiring the cache) */
   g_timeout_add(600000/*milliseconds*/, periodic, 0);