From 77d8ffb751ea6640a3dd625c12493733b2132a74 Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Mon, 30 Apr 2007 15:37:47 +0000 Subject: [PATCH] Fixed statusfile check --- mbtask/taskstat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mbtask/taskstat.c b/mbtask/taskstat.c index fac8bcf7..3c6b6d06 100644 --- a/mbtask/taskstat.c +++ b/mbtask/taskstat.c @@ -159,7 +159,7 @@ void status_init() } cnt = read(stat_fd, &status, sizeof(status_r)); - if (cnt != sizeof(status_r)) { + if ((cnt != sizeof(status_r)) && (cnt < 50)) { printf("Error reading status file\n"); exit(MBERR_INIT_ERROR); }