From: Miroslav Lichvar Date: Fri, 14 Jun 2013 10:34:52 +0000 (+0200) Subject: Replace LOG_FATAL call with assert in SCH_MailLoop X-Git-Tag: 1.28-pre1~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f3ef235a178bb22851a6d01bac02c351a05356a;p=thirdparty%2Fchrony.git Replace LOG_FATAL call with assert in SCH_MailLoop --- diff --git a/sched.c b/sched.c index 06eed1bb..c2758050 100644 --- a/sched.c +++ b/sched.c @@ -589,10 +589,7 @@ SCH_MainLoop(void) /* if there are no file descriptors being waited on and no timeout set, this is clearly ridiculous, so stop the run */ - - if (!ptv && (n_read_fds == 0)) { - LOG_FATAL(LOGF_Scheduler, "No descriptors or timeout to wait for"); - } + assert(ptv || n_read_fds); status = select(one_highest_fd, &rd, NULL, NULL, ptv); @@ -616,8 +613,6 @@ SCH_MainLoop(void) dispatch_filehandlers(status, &rd); } else { - assert(status == 0); - /* No descriptors readable, timeout must have elapsed. Therefore, tv must be non-null */ assert(ptv);