1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-20 08:27:15 +00:00

Check for G_IO_STATUS_EOF when reading from the devd socket to prevent

an event storm.

PR:		152524
This commit is contained in:
Joe Marcus Clarke 2011-01-08 18:05:48 +00:00
parent c972a9d052
commit 2c1c87a86c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=267523
2 changed files with 12 additions and 1 deletions

View File

@ -8,7 +8,7 @@
PORTNAME= hal
DISTVERSION= 0.5.14
PORTREVISION= 10
PORTREVISION= 11
CATEGORIES= sysutils
MASTER_SITES= http://hal.freedesktop.org/releases/

View File

@ -0,0 +1,11 @@
--- hald/freebsd/hf-devd.c.orig 2011-01-08 12:59:30.000000000 -0500
+++ hald/freebsd/hf-devd.c 2011-01-08 13:04:46.000000000 -0500
@@ -398,7 +398,7 @@ hf_devd_event_cb (GIOChannel *source, GI
hf_devd_process_event(event);
g_free(event);
}
- else if (status == G_IO_STATUS_AGAIN)
+ else if (status == G_IO_STATUS_AGAIN || status == G_IO_STATUS_EOF)
{
hf_devd_init();
if (hf_devd_inited)