Fixed statusfile check
This commit is contained in:
parent
a91f67fc71
commit
77d8ffb751
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user