diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | Src/Builtins/sched.c | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog index dc6d1644f..a7ed96ffb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2007-01-24 Peter Stephenson <pws@csr.com> + * unposted: Src/Builtins/sched.c: minor error in sched that no + one's spotted yet: we deleted a timed function twice if + there was anything left in the list after we ran an event. + * 23131: Test/.distfiles, Test/D08cmdsubst.ztst: new tests for command substitution. diff --git a/Src/Builtins/sched.c b/Src/Builtins/sched.c index c32a5f219..e4ccd98f6 100644 --- a/Src/Builtins/sched.c +++ b/Src/Builtins/sched.c @@ -97,11 +97,8 @@ checksched(void) */ if (schedcmds) { /* - * We need to delete the function from the list again, - * in case called code rescheduled. This is almost - * as cheap as checking if it's in the list already. + * We've already delete the function from the list. */ - deltimedfn(checksched); DPUTS(timedfns && firstnode(timedfns), "BUG: already timed fn (1)"); addtimedfn(checksched, schedcmds->time); } } |