devmand: don't die so easily
Change-Id: I048a975fb35dadf07ebb5d067d76fb1d1892bda8
This commit is contained in:
parent
b539f91aba
commit
fa901649a3
1 changed files with 9 additions and 0 deletions
|
@ -886,6 +886,15 @@ static void main_loop()
|
||||||
|
|
||||||
fd = fopen(ev_path, "r");
|
fd = fopen(ev_path, "r");
|
||||||
if (fd == NULL) {
|
if (fd == NULL) {
|
||||||
|
/*
|
||||||
|
* ENFILE is a temporary failure, often caused by
|
||||||
|
* running the test set. Don't die from that..
|
||||||
|
*/
|
||||||
|
if (errno == ENFILE) {
|
||||||
|
usleep(50000);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
fprintf(stderr,"devmand error: could not open event "
|
fprintf(stderr,"devmand error: could not open event "
|
||||||
"file %s bailing out\n", ev_path);
|
"file %s bailing out\n", ev_path);
|
||||||
cleanup();
|
cleanup();
|
||||||
|
|
Loading…
Reference in a new issue