Browse files

Fix mistake.

  • Loading branch information...
1 parent f4e4e22 commit f3511b1c396c079ca9e51f01168f5fc7053c97ed @FooBarWidget FooBarWidget committed with FooBarWidget May 17, 2008
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/passenger/application_spawner.rb
View
5 lib/passenger/application_spawner.rb
@@ -229,7 +229,10 @@ def switch_to_user(user)
# Some systems are broken. initgroups can fail because of
# all kinds of stupid reasons. So we ignore any errors
# raised by initgroups.
- Process.groups = Process.initgroups(username, gid) rescue nil
+ begin
+ Process.groups = Process.initgroups(username, gid)
+ rescue
+ end
Process::Sys.setgid(gid)
Process::Sys.setuid(uid)
return true

0 comments on commit f3511b1

Please sign in to comment.