From: David van Moolenbroek Date: Tue, 25 Feb 2014 23:28:43 +0000 (+0100) Subject: devmand: don't die so easily X-Git-Tag: v3.3.0~410 X-Git-Url: http://zhaoyanbai.com/repos/tz-link.htm?a=commitdiff_plain;h=fa901649a3b3cc128d58f873acfac2a9084b3506;p=minix.git devmand: don't die so easily Change-Id: I048a975fb35dadf07ebb5d067d76fb1d1892bda8 --- diff --git a/commands/devmand/main.c b/commands/devmand/main.c index 0e831adc2..343ef6c9d 100644 --- a/commands/devmand/main.c +++ b/commands/devmand/main.c @@ -886,6 +886,15 @@ static void main_loop() fd = fopen(ev_path, "r"); 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 " "file %s bailing out\n", ev_path); cleanup();