Skip to content

Commit

Permalink
Place constants at the right side of ==
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoqun committed May 18, 2012
1 parent 4aa8f9c commit 56494d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/common/process.rb
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 56494d0

Please sign in to comment.