[arch-commits] Commit in hal/trunk (addon-input-nval.patch)

Jan de Groot jgc at archlinux.org
Thu May 1 14:52:30 UTC 2008


    Date: Thursday, May 1, 2008 @ 10:52:29
  Author: jgc
Revision: 1155

Add missing patch

Added:
  hal/trunk/addon-input-nval.patch

------------------------+
 addon-input-nval.patch |   20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

Added: addon-input-nval.patch
===================================================================
--- addon-input-nval.patch	                        (rev 0)
+++ addon-input-nval.patch	2008-05-01 14:52:29 UTC (rev 1155)
@@ -0,0 +1,20 @@
+--- hald/linux/addons/addon-input.c.old	2008-04-18 17:11:59.000000000 -0400
++++ hald/linux/addons/addon-input.c	2008-04-18 17:12:12.000000000 -0400
+@@ -210,7 +210,7 @@
+ 	GError *gerror = NULL;
+ 	gsize read_bytes;
+ 
+-	if (condition & (G_IO_HUP | G_IO_ERR))
++	if (condition & (G_IO_HUP | G_IO_ERR | G_IO_NVAL))
+ 		return FALSE;
+ 
+ 	/** tbh, we can probably assume every time we read we have a whole
+@@ -383,7 +383,7 @@
+ 
+ 	g_hash_table_insert (inputs, g_strdup(udi), channel);
+ 	g_io_add_watch_full (channel,
+-			     G_PRIORITY_DEFAULT, G_IO_IN | G_IO_ERR | G_IO_HUP,
++			     G_PRIORITY_DEFAULT, G_IO_IN | G_IO_ERR | G_IO_HUP | G_IO_NVAL,
+ 			     event_io, data, (GDestroyNotify) destroy_data);
+ }
+ 





More information about the arch-commits mailing list