+} /* }}} void sigint_handler */
+
+static void sighup_handler (__attribute__((unused)) int signal) /* {{{ */
+{
+ do_output_network = 1;
+} /* }}} void sighup_handler */
+
+static int output_network (sn_network_t *n) /* {{{ */
+{
+ FILE *fh;
+
+ if (n == NULL)
+ return (EINVAL);
+
+ fh = fopen ("/dev/tty", "w");
+ if (fh == NULL)
+ return (errno);
+
+ sn_network_show_fh (n, fh);
+
+ fclose (fh);
+ return (0);
+} /* }}} int output_network */