From 2dc72c63d6cc4e4f2addb99783554707a3488b6d Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Thu, 10 Apr 2008 18:03:46 +0300 Subject: [PATCH] Mark scheduler task unscheduled after silc_schedule_unset_listen_fd. Affects epoll() version of schduler. If it isn't marked unscheduled next time fd's events are changed they expect the fd to be in epoll() which they are not. Setting unscheduled will add them again to epoll(). --- lib/silcutil/unix/silcunixschedule.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/silcutil/unix/silcunixschedule.c b/lib/silcutil/unix/silcunixschedule.c index 08563587..80e8fbf2 100644 --- a/lib/silcutil/unix/silcunixschedule.c +++ b/lib/silcutil/unix/silcunixschedule.c @@ -4,7 +4,7 @@ Author: Pekka Riikonen - Copyright (C) 1998 - 2007 Pekka Riikonen + Copyright (C) 1998 - 2008 Pekka Riikonen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -288,6 +288,7 @@ SilcBool silc_schedule_internal_schedule_fd(SilcSchedule schedule, SILC_LOG_DEBUG(("epoll_ctl (DEL): %s", strerror(errno))); return FALSE; } + task->scheduled = FALSE; return TRUE; } -- 2.24.0