diff options
-rw-r--r-- | x11/gnome-screensaver/Makefile | 3 | ||||
-rw-r--r-- | x11/gnome-screensaver/files/patch-src_cut-n-paste_gdm-queue.c | 23 |
2 files changed, 23 insertions, 3 deletions
diff --git a/x11/gnome-screensaver/Makefile b/x11/gnome-screensaver/Makefile index 2793836fc..5687897a5 100644 --- a/x11/gnome-screensaver/Makefile +++ b/x11/gnome-screensaver/Makefile @@ -3,11 +3,12 @@ # Whom: Joe Marcus Clarke <marcus@FreeBSD.org> # # $FreeBSD$ -# $MCom: ports/x11/gnome-screensaver/Makefile,v 1.66 2007/01/29 01:49:59 marcus Exp $ +# $MCom: ports/x11/gnome-screensaver/Makefile,v 1.67 2007/02/13 07:19:21 mezz Exp $ # PORTNAME= gnome-screensaver PORTVERSION= 2.17.7 +PORTREVISION= 1 CATEGORIES= x11 gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/} diff --git a/x11/gnome-screensaver/files/patch-src_cut-n-paste_gdm-queue.c b/x11/gnome-screensaver/files/patch-src_cut-n-paste_gdm-queue.c index 8e297b019..b470e145a 100644 --- a/x11/gnome-screensaver/files/patch-src_cut-n-paste_gdm-queue.c +++ b/x11/gnome-screensaver/files/patch-src_cut-n-paste_gdm-queue.c @@ -1,5 +1,5 @@ ---- src/cut-n-paste/gdm-queue.c.orig Fri Feb 2 23:52:26 2007 -+++ src/cut-n-paste/gdm-queue.c Fri Feb 2 23:52:32 2007 +--- src/cut-n-paste/gdm-queue.c.orig Tue Jan 30 11:21:39 2007 ++++ src/cut-n-paste/gdm-queue.c Tue Feb 20 23:20:17 2007 @@ -32,6 +32,7 @@ #include <sys/un.h> #include <errno.h> @@ -8,3 +8,22 @@ #include "gdm-queue.h" +@@ -235,13 +236,14 @@ gboolean gdm_run_queue (void *dummy) + addr.sun_family = AF_UNIX; + + if (fcntl (gdm_socket, F_SETFL, O_NONBLOCK) < 0) { +- close_gdm_socket (); +- return TRUE; ++ VE_IGNORE_EINTR (close (gdm_socket)); ++ return FALSE; + } + + if (connect (gdm_socket, (struct sockaddr *)&addr, sizeof (addr)) < 0) { +- close_gdm_socket (); +- return TRUE; ++ g_warning ("Unable to connect to GDM socket: %s", GDM_SOCKET_FILENAME); ++ VE_IGNORE_EINTR (close (gdm_socket)); ++ return FALSE; + } + + gdm_send_command("VERSION"); |