[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r9430 - gnunet/src/util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r9430 - gnunet/src/util |
Date: |
Sun, 8 Nov 2009 14:50:27 -0700 |
Author: durner
Date: 2009-11-08 14:50:27 -0700 (Sun, 08 Nov 2009)
New Revision: 9430
Modified:
gnunet/src/util/scheduler.c
Log:
fix crash
Modified: gnunet/src/util/scheduler.c
===================================================================
--- gnunet/src/util/scheduler.c 2009-11-08 21:31:27 UTC (rev 9429)
+++ gnunet/src/util/scheduler.c 2009-11-08 21:50:27 UTC (rev 9430)
@@ -471,7 +471,6 @@
while ((sched->pending == NULL) || (p == GNUNET_SCHEDULER_PRIORITY_URGENT));
}
-#ifndef MINGW
/**
* Pipe used to communicate shutdown via signal.
*/
@@ -490,7 +489,6 @@
(sigpipe, GNUNET_DISK_PIPE_END_WRITE), &c,
sizeof (c));
}
-#endif
/**
@@ -526,7 +524,6 @@
rs = GNUNET_NETWORK_fdset_create ();
ws = GNUNET_NETWORK_fdset_create ();
-#ifndef MINGW
GNUNET_assert (sigpipe == NULL);
sigpipe = GNUNET_DISK_pipe (GNUNET_NO);
GNUNET_assert (sigpipe != NULL);
@@ -534,6 +531,7 @@
GNUNET_assert (pr != NULL);
shc_int = GNUNET_SIGNAL_handler_install (SIGINT, &sighandler_shutdown);
shc_term = GNUNET_SIGNAL_handler_install (SIGTERM, &sighandler_shutdown);
+#ifndef MINGW
shc_quit = GNUNET_SIGNAL_handler_install (SIGQUIT, &sighandler_shutdown);
shc_hup = GNUNET_SIGNAL_handler_install (SIGHUP, &sighandler_shutdown);
#endif
@@ -565,7 +563,6 @@
GNUNET_log_strerror (GNUNET_ERROR_TYPE_ERROR, "select");
break;
}
-#ifndef MINGW
if (GNUNET_NETWORK_fdset_handle_isset (rs, pr))
{
/* consume the signal */
@@ -573,7 +570,6 @@
/* mark all active tasks as ready due to shutdown */
GNUNET_SCHEDULER_shutdown (&sched);
}
-#endif
if (last_tr == sched.tasks_run)
{
busy_wait_warning++;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r9430 - gnunet/src/util,
gnunet <=