aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-08-01 20:35:48 +0000
committerChristian Grothoff <christian@grothoff.org>2011-08-01 20:35:48 +0000
commitfce3f96f9ffad4d63a172240b6b20d89e3f6dac7 (patch)
tree3a86493a9893b18e1dab80bdf776ef3a858d2a4c /src/util
parent91d08e660237ff9a43476aabeb297daeaf9014ed (diff)
downloadgnunet-fce3f96f9ffad4d63a172240b6b20d89e3f6dac7.tar.gz
gnunet-fce3f96f9ffad4d63a172240b6b20d89e3f6dac7.zip
LRN: Don't wait for parent control handler to quit
CG: Note: this should not stand; temporary hack.
Diffstat (limited to 'src/util')
-rw-r--r--src/util/os_priority.c2
-rw-r--r--src/util/scheduler.c6
2 files changed, 6 insertions, 2 deletions
diff --git a/src/util/os_priority.c b/src/util/os_priority.c
index d214372d7..c9458212e 100644
--- a/src/util/os_priority.c
+++ b/src/util/os_priority.c
@@ -51,7 +51,7 @@ static struct GNUNET_OS_Process current_process;
51 * @param cls the 'struct GNUNET_DISK_FileHandle' of the control pipe 51 * @param cls the 'struct GNUNET_DISK_FileHandle' of the control pipe
52 * @param tc scheduler context 52 * @param tc scheduler context
53 */ 53 */
54static void 54void
55parent_control_handler (void *cls, 55parent_control_handler (void *cls,
56 const struct 56 const struct
57 GNUNET_SCHEDULER_TaskContext * tc) 57 GNUNET_SCHEDULER_TaskContext * tc)
diff --git a/src/util/scheduler.c b/src/util/scheduler.c
index 1e9290adf..eaf965894 100644
--- a/src/util/scheduler.c
+++ b/src/util/scheduler.c
@@ -751,7 +751,11 @@ GNUNET_SCHEDULER_run (GNUNET_SCHEDULER_Task task, void *task_cls)
751#endif 751#endif
752 last_tr = 0; 752 last_tr = 0;
753 busy_wait_warning = 0; 753 busy_wait_warning = 0;
754 while ((pending != NULL) || 754 while ((pending != NULL
755#if ENABLE_WINDOWS_WORKAROUNDS
756 && (pending->callback != parent_control_handler || pending->next != NULL)
757#endif
758 ) ||
755 (pending_timeout != NULL) || 759 (pending_timeout != NULL) ||
756 (ready_count > 0)) 760 (ready_count > 0))
757 { 761 {