Fixed statusfile check

This commit is contained in:
Michiel Broek 2007-04-30 15:37:47 +00:00
parent a91f67fc71
commit 77d8ffb751

View File

@ -159,7 +159,7 @@ void status_init()
} }
cnt = read(stat_fd, &status, sizeof(status_r)); 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"); printf("Error reading status file\n");
exit(MBERR_INIT_ERROR); exit(MBERR_INIT_ERROR);
} }