23 lines
818 B
Plaintext
23 lines
818 B
Plaintext
$OpenBSD: patch-glib_gmain_c,v 1.9 2012/03/06 11:39:17 ajacoutot Exp $
|
|
|
|
Rewrote upstream, but provides similar functionnality.
|
|
(test with GDM that the following does not happen:
|
|
Failed to read from child watch wake up pipe: Interrupted system call)
|
|
|
|
--- glib/gmain.c.orig Fri Nov 11 18:56:52 2011
|
|
+++ glib/gmain.c Wed Nov 16 15:46:52 2011
|
|
@@ -4564,7 +4568,12 @@ unix_signal_helper_thread (gpointer data)
|
|
gboolean sigint_received = FALSE;
|
|
gboolean sighup_received = FALSE;
|
|
|
|
- bytes_read = read (unix_signal_wake_up_pipe[0], b, sizeof (b));
|
|
+ do
|
|
+ {
|
|
+ bytes_read = read (unix_signal_wake_up_pipe[0], b, sizeof (b));
|
|
+ }
|
|
+ while (bytes_read == -1 && errno == EINTR);
|
|
+
|
|
if (bytes_read < 0)
|
|
{
|
|
g_warning ("Failed to read from child watch wake up pipe: %s",
|