am 4a485818: Gracefully handle ENODEV in sdcard daemon.
* commit '4a4858185177616707dda7ab562f45a0a8494e3f': Gracefully handle ENODEV in sdcard daemon.
This commit is contained in:
commit
cf8d4263b5
1 changed files with 4 additions and 0 deletions
|
|
@ -1510,6 +1510,10 @@ static void handle_fuse_requests(struct fuse_handler* handler)
|
|||
if (errno != EINTR) {
|
||||
ERROR("[%d] handle_fuse_requests: errno=%d\n", handler->token, errno);
|
||||
}
|
||||
if (errno == ENODEV) {
|
||||
ERROR("[%d] someone stole our marbles!\n", handler->token);
|
||||
exit(2);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue