pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/x11/xautolock Don't invoke screen locking program with...
details: https://anonhg.NetBSD.org/pkgsrc/rev/ce61455ec208
branches: trunk
changeset: 459843:ce61455ec208
user: tron <tron%pkgsrc.org@localhost>
date: Sat Aug 09 08:32:13 2003 +0000
description:
Don't invoke screen locking program with standard output or standard error
closed. Bump package revision to reflect this change.
diffstat:
x11/xautolock/Makefile | 3 ++-
x11/xautolock/distinfo | 4 ++--
x11/xautolock/patches/patch-aa | 35 ++++++++++++++++++++++++++++++-----
3 files changed, 34 insertions(+), 8 deletions(-)
diffs (89 lines):
diff -r 1d1d96221b54 -r ce61455ec208 x11/xautolock/Makefile
--- a/x11/xautolock/Makefile Sat Aug 09 08:11:30 2003 +0000
+++ b/x11/xautolock/Makefile Sat Aug 09 08:32:13 2003 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.14 2003/07/17 22:56:51 grant Exp $
+# $NetBSD: Makefile,v 1.15 2003/08/09 08:32:13 tron Exp $
DISTNAME= xautolock-pl15
PKGNAME= xautolock-1.15
+PKGREVISION= 1
CATEGORIES= x11
MASTER_SITES= ${MASTER_SITE_XCONTRIB:=applications/}
EXTRACT_SUFX= .tgz
diff -r 1d1d96221b54 -r ce61455ec208 x11/xautolock/distinfo
--- a/x11/xautolock/distinfo Sat Aug 09 08:11:30 2003 +0000
+++ b/x11/xautolock/distinfo Sat Aug 09 08:32:13 2003 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.3 2003/07/25 14:09:41 tron Exp $
+$NetBSD: distinfo,v 1.4 2003/08/09 08:32:14 tron Exp $
SHA1 (xautolock-pl15.tgz) = 5bc632141a4cf76fb6453921f34c2f493a1ff08d
Size (xautolock-pl15.tgz) = 39240 bytes
-SHA1 (patch-aa) = 5f7090a0d9b434da9ec07e651db7214b312b61df
+SHA1 (patch-aa) = 1213abeb844c22752c5cda040e7228f1526fa9eb
SHA1 (patch-ab) = 1299556b89466018de5553febe4bed8df8eab09d
diff -r 1d1d96221b54 -r ce61455ec208 x11/xautolock/patches/patch-aa
--- a/x11/xautolock/patches/patch-aa Sat Aug 09 08:11:30 2003 +0000
+++ b/x11/xautolock/patches/patch-aa Sat Aug 09 08:32:13 2003 +0000
@@ -1,7 +1,7 @@
-$NetBSD: patch-aa,v 1.3 1999/04/05 22:46:28 mjl Exp $
+$NetBSD: patch-aa,v 1.4 2003/08/09 08:32:15 tron Exp $
---- xautolock.c.orig Thu Mar 11 23:43:25 1999
-+++ xautolock.c Tue Apr 6 00:06:02 1999
+--- xautolock.c.orig 1999-03-11 23:43:25.000000000 +0100
++++ xautolock.c 2003-08-09 10:29:28.000000000 +0200
@@ -297,6 +297,8 @@
* with vroot.h, because it needs to know the real root window.
*/
@@ -11,7 +11,7 @@
#if defined(hpux) || defined (__hpux)
#ifndef _HPUX_SOURCE
#define _HPUX_SOURCE
-@@ -368,7 +370,10 @@
+@@ -368,7 +370,11 @@
#endif /* !NOSTDHDRS */
#if !defined (apollo) && !defined (VMS)
@@ -19,10 +19,11 @@
#include <malloc.h>
+#endif /* !BSD */
+
++#include <fcntl.h>
#include <unistd.h>
#endif /* !apollo && !VMS */
-@@ -2028,7 +2033,9 @@
+@@ -2028,7 +2034,9 @@
#else /* VMS */
if (locker_pid)
{
@@ -33,3 +34,27 @@
union wait status; /* childs process status */
#else /* !UTEKV && !SYSV && !SVR4 */
int status = 0; /* childs process status */
+@@ -2762,8 +2770,23 @@
+
+ CheckConnectionAndSendMessage (d);
+
++#if !defined (apollo) && !defined (VMS)
++ if (close_out || close_err)
++ {
++ Int devnull;
++
++ devnull = open("/dev/null", O_WRONLY, 0);
++ if (devnull >= 0)
++ {
++ if (close_out) (Void) dup2(devnull, fileno(stdout));
++ if (close_err) (Void) dup2(devnull, fileno(stderr));
++ (Void) close(devnull);
++ }
++ }
++#else
+ if (close_out) (Void) fclose (stdout);
+ if (close_err) (Void) fclose (stderr);
++#endif
+
+ (Void) XSetErrorHandler ((XErrorHandler) CatchFalseAlarm);
+
Home |
Main Index |
Thread Index |
Old Index