[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r12413 - gnunet/src/util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r12413 - gnunet/src/util |
Date: |
Fri, 30 Jul 2010 16:45:08 +0200 |
Author: nevans
Date: 2010-07-30 16:45:08 +0200 (Fri, 30 Jul 2010)
New Revision: 12413
Modified:
gnunet/src/util/scheduler.c
Log:
nicer names for C-dog
Modified: gnunet/src/util/scheduler.c
===================================================================
--- gnunet/src/util/scheduler.c 2010-07-30 14:44:00 UTC (rev 12412)
+++ gnunet/src/util/scheduler.c 2010-07-30 14:45:08 UTC (rev 12413)
@@ -621,12 +621,10 @@
/**
* Pipe used to communicate shutdown via signal.
*/
-static struct GNUNET_DISK_PipeHandle *sigpipe;
+static struct GNUNET_DISK_PipeHandle *shutdown_pipe_handle;
/**
- * Signal handler called for sigpipe.
- *
- * FIXME: what should we do here?
+ * Signal handler called for SIGPIPE.
*/
static void
sighandler_pipe ()
@@ -643,7 +641,7 @@
static char c;
GNUNET_DISK_file_write (GNUNET_DISK_pipe_handle
- (sigpipe, GNUNET_DISK_PIPE_END_WRITE), &c,
+ (shutdown_pipe_handle, GNUNET_DISK_PIPE_END_WRITE),
&c,
sizeof (c));
}
@@ -682,10 +680,10 @@
rs = GNUNET_NETWORK_fdset_create ();
ws = GNUNET_NETWORK_fdset_create ();
- GNUNET_assert (sigpipe == NULL);
- sigpipe = GNUNET_DISK_pipe (GNUNET_NO);
- GNUNET_assert (sigpipe != NULL);
- pr = GNUNET_DISK_pipe_handle (sigpipe, GNUNET_DISK_PIPE_END_READ);
+ GNUNET_assert (shutdown_pipe_handle == NULL);
+ shutdown_pipe_handle = GNUNET_DISK_pipe (GNUNET_NO);
+ GNUNET_assert (shutdown_pipe_handle != NULL);
+ pr = GNUNET_DISK_pipe_handle (shutdown_pipe_handle,
GNUNET_DISK_PIPE_END_READ);
GNUNET_assert (pr != NULL);
shc_pipe = GNUNET_SIGNAL_handler_install (SIGPIPE, &sighandler_pipe);
shc_int = GNUNET_SIGNAL_handler_install (SIGINT, &sighandler_shutdown);
@@ -764,8 +762,8 @@
GNUNET_SIGNAL_handler_uninstall (shc_quit);
GNUNET_SIGNAL_handler_uninstall (shc_hup);
#endif
- GNUNET_DISK_pipe_close (sigpipe);
- sigpipe = NULL;
+ GNUNET_DISK_pipe_close (shutdown_pipe_handle);
+ shutdown_pipe_handle = NULL;
GNUNET_NETWORK_fdset_destroy (rs);
GNUNET_NETWORK_fdset_destroy (ws);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r12413 - gnunet/src/util,
gnunet <=