aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-10-19 10:07:35 +0000
committerChristian Grothoff <christian@grothoff.org>2009-10-19 10:07:35 +0000
commitd3bcfcedf4de29dbae00b12e621789170b6aa4a8 (patch)
tree6abf96caaa0314d3874bd4c2fc04286a7a8cf725
parente0fbc42b72ba4268f51f3ca10e9746df510d3372 (diff)
downloadgnunet-d3bcfcedf4de29dbae00b12e621789170b6aa4a8.tar.gz
gnunet-d3bcfcedf4de29dbae00b12e621789170b6aa4a8.zip
add assertions
-rw-r--r--src/util/scheduler.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/scheduler.c b/src/util/scheduler.c
index ae0428a94..24ea28d2c 100644
--- a/src/util/scheduler.c
+++ b/src/util/scheduler.c
@@ -514,8 +514,11 @@ GNUNET_SCHEDULER_run (GNUNET_SCHEDULER_Task task, void *cls)
514 rs = GNUNET_NETWORK_fdset_create (); 514 rs = GNUNET_NETWORK_fdset_create ();
515 ws = GNUNET_NETWORK_fdset_create (); 515 ws = GNUNET_NETWORK_fdset_create ();
516#ifndef MINGW 516#ifndef MINGW
517 GNUNET_assert (sigpipe == NULL);
517 sigpipe = GNUNET_DISK_pipe (GNUNET_NO); 518 sigpipe = GNUNET_DISK_pipe (GNUNET_NO);
519 GNUNET_assert (sigpipe != NULL);
518 pr = GNUNET_DISK_pipe_handle (sigpipe, GNUNET_DISK_PIPE_END_READ); 520 pr = GNUNET_DISK_pipe_handle (sigpipe, GNUNET_DISK_PIPE_END_READ);
521 GNUNET_assert (pr != NULL);
519 shc_int = GNUNET_SIGNAL_handler_install (SIGINT, &sighandler_shutdown); 522 shc_int = GNUNET_SIGNAL_handler_install (SIGINT, &sighandler_shutdown);
520 shc_term = GNUNET_SIGNAL_handler_install (SIGTERM, &sighandler_shutdown); 523 shc_term = GNUNET_SIGNAL_handler_install (SIGTERM, &sighandler_shutdown);
521 shc_quit = GNUNET_SIGNAL_handler_install (SIGQUIT, &sighandler_shutdown); 524 shc_quit = GNUNET_SIGNAL_handler_install (SIGQUIT, &sighandler_shutdown);