You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@steve.apache.org by ji...@apache.org on 2014/05/23 15:39:12 UTC

svn commit: r1597094 - /steve/trunk/cmdline/steve.pm

Author: jim
Date: Fri May 23 13:39:12 2014
New Revision: 1597094

URL: http://svn.apache.org/r1597094
Log:
use consistent boolean

Modified:
    steve/trunk/cmdline/steve.pm

Modified: steve/trunk/cmdline/steve.pm
URL: http://svn.apache.org/viewvc/steve/trunk/cmdline/steve.pm?rev=1597094&r1=1597093&r2=1597094&view=diff
==============================================================================
--- steve/trunk/cmdline/steve.pm (original)
+++ steve/trunk/cmdline/steve.pm Fri May 23 13:39:12 2014
@@ -250,15 +250,15 @@ sub ballots {
 
 sub lock {
   my ($f) = @_;
-  flock($f, LOCK_EX) or die "Cannot lock file: $!\n";
-  seek($f, 0, SEEK_END) or die "Cannot seek: $!\n";
+  flock($f, LOCK_EX) || die "Cannot lock file: $!\n";
+  seek($f, 0, SEEK_END) || die "Cannot seek: $!\n";
 }
 
 # ==========================================================================
 
 sub unlock {
   my ($f) = @_;
-  flock($f, LOCK_UN) or die "Cannot unlock file: $!\n";
+  flock($f, LOCK_UN) || die "Cannot unlock file: $!\n";
 }
 
 1;