diff options
author | Antoine Jacoutot <ajacoutot@cvs.openbsd.org> | 2012-08-21 06:38:53 +0000 |
---|---|---|
committer | Antoine Jacoutot <ajacoutot@cvs.openbsd.org> | 2012-08-21 06:38:53 +0000 |
commit | a547bfa7477edb126fd9866a307b5bf37588d9f4 (patch) | |
tree | 6b83b50b52016133f5391c001cdd67c33aafd87a /etc/rc.d | |
parent | 2741430f011680555292e8d800c74d76a77cb36f (diff) |
Use the new "-q" option of pgrep(1) instead of redirecting stdout
to /dev/null.
Diffstat (limited to 'etc/rc.d')
-rw-r--r-- | etc/rc.d/rc.subr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.d/rc.subr b/etc/rc.d/rc.subr index a5d7a97173c..ad89293b07f 100644 --- a/etc/rc.d/rc.subr +++ b/etc/rc.d/rc.subr @@ -1,4 +1,4 @@ -# $OpenBSD: rc.subr,v 1.62 2012/08/13 10:10:07 ajacoutot Exp $ +# $OpenBSD: rc.subr,v 1.63 2012/08/21 06:38:52 ajacoutot Exp $ # # Copyright (c) 2010, 2011 Antoine Jacoutot <ajacoutot@openbsd.org> # Copyright (c) 2010, 2011 Ingo Schwarze <schwarze@openbsd.org> @@ -48,7 +48,7 @@ rc_start() { } rc_check() { - pgrep -f "^${pexp}" >/dev/null + pgrep -q -f "^${pexp}" } rc_reload() { |