pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/rc.subr On some operating systems (Linux, Fre...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2062a865103d
branches:  trunk
changeset: 553305:2062a865103d
user:      shattered <shattered%pkgsrc.org@localhost>
date:      Sun Jan 18 22:35:35 2009 +0000

description:
On some operating systems (Linux, FreeBSD -- see their problem report
82430) ps might list process names in square brackets.  Fix regex in
_find_processes() accordingly.

OK by wiz@.

diffstat:

 pkgtools/rc.subr/Makefile      |  4 ++--
 pkgtools/rc.subr/files/rc.subr |  4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r 4038a187f5ce -r 2062a865103d pkgtools/rc.subr/Makefile
--- a/pkgtools/rc.subr/Makefile Sun Jan 18 21:52:25 2009 +0000
+++ b/pkgtools/rc.subr/Makefile Sun Jan 18 22:35:35 2009 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.18 2008/12/21 00:03:32 adrianp Exp $
+# $NetBSD: Makefile,v 1.19 2009/01/18 22:35:35 shattered Exp $
 #
 
-DISTNAME=              rc.subr-20081208
+DISTNAME=              rc.subr-20090118
 CATEGORIES=            pkgtools
 MASTER_SITES=          # empty
 DISTFILES=             # empty
diff -r 4038a187f5ce -r 2062a865103d pkgtools/rc.subr/files/rc.subr
--- a/pkgtools/rc.subr/files/rc.subr    Sun Jan 18 21:52:25 2009 +0000
+++ b/pkgtools/rc.subr/files/rc.subr    Sun Jan 18 22:35:35 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: rc.subr,v 1.9 2008/12/21 00:03:32 adrianp Exp $
+# $NetBSD: rc.subr,v 1.10 2009/01/18 22:35:35 shattered Exp $
 #
 # Copyright (c) 1997-2002 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -276,7 +276,7 @@
                _procnamebn=${_procname##*/}
                _fp_args='_arg0 _argv'
                _fp_match='case "$_arg0" in
-                   $_procname|$_procnamebn|${_procnamebn}:|"(${_procnamebn})")'
+                   $_procname|$_procnamebn|${_procnamebn}:|"(${_procnamebn})"|"[${_procnamebn}]")'
        fi
 
        _proccheck='



Home | Main Index | Thread Index | Old Index