diff options
author | shattered <shattered> | 2009-01-18 22:35:35 +0000 |
---|---|---|
committer | shattered <shattered> | 2009-01-18 22:35:35 +0000 |
commit | 74d9411dbdef92852b3d8e595f9850bae69aa692 (patch) | |
tree | eb406539a1d6b7a7cf6c010d807f05d49943de34 /pkgtools | |
parent | 979ba66eb95cdec6508e83cf6355d4bbd71e6962 (diff) | |
download | pkgsrc-74d9411dbdef92852b3d8e595f9850bae69aa692.tar.gz |
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 (limited to 'pkgtools')
-rw-r--r-- | pkgtools/rc.subr/Makefile | 4 | ||||
-rw-r--r-- | pkgtools/rc.subr/files/rc.subr | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/pkgtools/rc.subr/Makefile b/pkgtools/rc.subr/Makefile index 84ece48b891..beec932c676 100644 --- a/pkgtools/rc.subr/Makefile +++ b/pkgtools/rc.subr/Makefile @@ -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 --git a/pkgtools/rc.subr/files/rc.subr b/pkgtools/rc.subr/files/rc.subr index a017d81e208..e7f806f43d9 100644 --- a/pkgtools/rc.subr/files/rc.subr +++ b/pkgtools/rc.subr/files/rc.subr @@ -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 @@ _find_processes() _procnamebn=${_procname##*/} _fp_args='_arg0 _argv' _fp_match='case "$_arg0" in - $_procname|$_procnamebn|${_procnamebn}:|"(${_procnamebn})")' + $_procname|$_procnamebn|${_procnamebn}:|"(${_procnamebn})"|"[${_procnamebn}]")' fi _proccheck=' |