Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Place constants at the right side of ==

  • Loading branch information...
commit 56494d0627e098cc374343fed2a8663928c48651 1 parent 4aa8f9c
@ryoqun ryoqun authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 kernel/common/process.rb
View
4 kernel/common/process.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.