Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Aug 2010 21:04:44 +0000 (UTC)
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r211289 - head/etc
Message-ID:  <201008132104.o7DL4iU3007101@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jkim
Date: Fri Aug 13 21:04:43 2010
New Revision: 211289
URL: http://svn.freebsd.org/changeset/base/211289

Log:
  Do not fork a subshell unnecessarily.

Modified:
  head/etc/rc.suspend

Modified: head/etc/rc.suspend
==============================================================================
--- head/etc/rc.suspend	Fri Aug 13 20:43:19 2010	(r211288)
+++ head/etc/rc.suspend	Fri Aug 13 21:04:43 2010	(r211289)
@@ -49,8 +49,8 @@ fast|safe)
 	/bin/rm -f /var/run/rc.suspend.tch
 	;;
 *)
-	( /sbin/sysctl -n kern.timecounter.hardware=ACPI-fast || \
-	    /sbin/sysctl -n kern.timecounter.hardware=ACPI-safe ) \
+	{ /sbin/sysctl -n kern.timecounter.hardware=ACPI-fast || \
+	    /sbin/sysctl -n kern.timecounter.hardware=ACPI-safe; } \
 	    > /dev/null 2>&1 && echo $_t > /var/run/rc.suspend.tch
 	;;
 esac



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008132104.o7DL4iU3007101>