summaryrefslogtreecommitdiff
path: root/sched.c
diff options
context:
space:
mode:
Diffstat (limited to 'sched.c')
-rw-r--r--sched.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sched.c b/sched.c
index 78016de..bab926a 100644
--- a/sched.c
+++ b/sched.c
@@ -179,7 +179,8 @@ SCH_AddInputFileHandler
/* Don't want to allow the same fd to register a handler more than
once without deleting a previous association - this suggests
a bug somewhere else in the program. */
- assert(!FD_ISSET(fd, &read_fds));
+ if (FD_ISSET(fd, &read_fds))
+ assert(0);
++n_read_fds;
@@ -208,7 +209,8 @@ SCH_RemoveInputFileHandler(int fd)
assert(initialised);
/* Check that a handler was registered for the fd in question */
- assert(FD_ISSET(fd, &read_fds));
+ if (!FD_ISSET(fd, &read_fds))
+ assert(0);
--n_read_fds;
@@ -717,7 +719,6 @@ SCH_MainLoop(void)
void
SCH_QuitProgram(void)
{
- assert(initialised);
need_to_exit = 1;
}