From 65ec55e68f8233b4dc16ad199d83e191e7343d59 Mon Sep 17 00:00:00 2001 From: nvt-se Date: Wed, 2 Jul 2008 15:18:43 +0000 Subject: [PATCH] call watchdog_periodic in potentially long-running loops --- core/cfs/cfs-coffee.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/cfs/cfs-coffee.c b/core/cfs/cfs-coffee.c index b6a4dfb60..5d397a871 100644 --- a/core/cfs/cfs-coffee.c +++ b/core/cfs/cfs-coffee.c @@ -539,6 +539,7 @@ flush_log(uint16_t file_page) offset = 0; do { + watchdog_periodic(); n = cfs_read(fd, buf, sizeof (buf)); if(n < 0) { remove_by_page(new_file_page, 0, 0); @@ -802,6 +803,7 @@ cfs_read(int fd, void *buf, unsigned size) * ordinary file if the page has no log entry. */ while(remains) { + watchdog_periodic(); r = -1; if(COFFEE_PAGE_MODIFIED(hdr)) { lp.offset = base + offset;