Permalink
Browse files

Place constants at the right side of ==

  • Loading branch information...
1 parent 4aa8f9c commit 56494d0627e098cc374343fed2a8663928c48651 @ryoqun ryoqun committed May 18, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 kernel/common/process.rb
View
@@ -64,7 +64,7 @@ def self.getrlimit(resource)
def self.setsid
pgid = FFI::Platform::POSIX.setsid
- Errno.handle if -1 == pgid
+ Errno.handle if pgid == -1
pgid
end
@@ -274,7 +274,7 @@ def self.groups=(g)
@maxgroups = g.length if g.length > @maxgroups
FFI::MemoryPointer.new(:int, @maxgroups) { |p|
p.write_array_of_int(g)
- Errno.handle if -1 == FFI::Platform::POSIX.setgroups(g.length, p)
+ Errno.handle if FFI::Platform::POSIX.setgroups(g.length, p) == -1
}
g
end

0 comments on commit 56494d0

Please sign in to comment.