diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-11-05 18:47:50 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-11-05 18:47:50 +0000 |
commit | e1196c2c76e6a4a142a91bb9e0a0fae1a06f68fc (patch) | |
tree | a220e450deca24c69178cd0b0b8aeb0c21dd8792 /src/util/scheduler.c | |
parent | bf886ddf525b991c6a11c9bd0be10e9aa0dd1c80 (diff) | |
download | gnunet-e1196c2c76e6a4a142a91bb9e0a0fae1a06f68fc.tar.gz gnunet-e1196c2c76e6a4a142a91bb9e0a0fae1a06f68fc.zip |
introducing GNUNET_abort
Diffstat (limited to 'src/util/scheduler.c')
-rw-r--r-- | src/util/scheduler.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/scheduler.c b/src/util/scheduler.c index 0c4374471..82b888fec 100644 --- a/src/util/scheduler.c +++ b/src/util/scheduler.c | |||
@@ -676,7 +676,7 @@ run_ready (struct GNUNET_NETWORK_FDSet *rs, struct GNUNET_NETWORK_FDSet *ws) | |||
676 | if (((tc.reason & GNUNET_SCHEDULER_REASON_WRITE_READY) != 0) && | 676 | if (((tc.reason & GNUNET_SCHEDULER_REASON_WRITE_READY) != 0) && |
677 | (pos->write_fd != -1) && | 677 | (pos->write_fd != -1) && |
678 | (!GNUNET_NETWORK_fdset_test_native (ws, pos->write_fd))) | 678 | (!GNUNET_NETWORK_fdset_test_native (ws, pos->write_fd))) |
679 | abort (); // added to ready in previous select loop! | 679 | GNUNET_abort (); // added to ready in previous select loop! |
680 | #if DEBUG_TASKS | 680 | #if DEBUG_TASKS |
681 | LOG (GNUNET_ERROR_TYPE_DEBUG, "Running task: %llu / %p\n", pos->id, | 681 | LOG (GNUNET_ERROR_TYPE_DEBUG, "Running task: %llu / %p\n", pos->id, |
682 | pos->callback_cls); | 682 | pos->callback_cls); |
@@ -852,7 +852,7 @@ GNUNET_SCHEDULER_run (GNUNET_SCHEDULER_Task task, void *task_cls) | |||
852 | LOG_STRERROR (GNUNET_ERROR_TYPE_WARNING, "system"); | 852 | LOG_STRERROR (GNUNET_ERROR_TYPE_WARNING, "system"); |
853 | #endif | 853 | #endif |
854 | #endif | 854 | #endif |
855 | abort (); | 855 | GNUNET_abort (); |
856 | break; | 856 | break; |
857 | } | 857 | } |
858 | if ((ret == 0) && (timeout.rel_value == 0) && (busy_wait_warning > 16)) | 858 | if ((ret == 0) && (timeout.rel_value == 0) && (busy_wait_warning > 16)) |