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:
parent
c972a9d052
commit
2c1c87a86c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=267523
@ -8,7 +8,7 @@
|
||||
|
||||
PORTNAME= hal
|
||||
DISTVERSION= 0.5.14
|
||||
PORTREVISION= 10
|
||||
PORTREVISION= 11
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= http://hal.freedesktop.org/releases/
|
||||
|
||||
|
11
sysutils/hal/files/patch-hald_freebsd_hf-devd.c
Normal file
11
sysutils/hal/files/patch-hald_freebsd_hf-devd.c
Normal 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)
|
Loading…
Reference in New Issue
Block a user