aboutsummaryrefslogtreecommitdiff
path: root/util-linux/mdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/mdev.c')
-rw-r--r--util-linux/mdev.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/util-linux/mdev.c b/util-linux/mdev.c
index 4c00a2d7e..d4f06c128 100644
--- a/util-linux/mdev.c
+++ b/util-linux/mdev.c
@@ -1199,6 +1199,16 @@ static void daemon_loop(char *temp, int fd)
1199 1199
1200 len = safe_read(fd, netbuf, sizeof(netbuf) - 1); 1200 len = safe_read(fd, netbuf, sizeof(netbuf) - 1);
1201 if (len < 0) { 1201 if (len < 0) {
1202 if (errno == ENOBUFS) {
1203 /*
1204 * We ran out of socket receive buffer space.
1205 * Start from scratch.
1206 */
1207 dbg1s("uevent overrun, rescanning");
1208 close(fd);
1209 fd = daemon_init(temp);
1210 continue;
1211 }
1202 bb_simple_perror_msg_and_die("read"); 1212 bb_simple_perror_msg_and_die("read");
1203 } 1213 }
1204 end = netbuf + len; 1214 end = netbuf + len;