tango 0.1.14 → 0.1.15
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/tango/shell.rb +0 -6
- data/lib/tango/version.rb +1 -1
- metadata +1 -1
data/lib/tango/shell.rb
CHANGED
@@ -37,12 +37,6 @@ module Tango
|
|
37
37
|
def fork_and_exec(command, env_vars, *args)
|
38
38
|
read_end, write_end = IO.pipe
|
39
39
|
pid = Kernel.fork do
|
40
|
-
# set the actual user ID to be the effective user ID of the parent
|
41
|
-
# we need to do this, because Ruby scripts called via a process with a different uid and euid will barf.
|
42
|
-
# This is an issue if we've already set the euid to something different.
|
43
|
-
# Do it after we've forked, as we can't change it back if we do it in the main parent process
|
44
|
-
Process::Sys.setuid(Process::Sys.geteuid)
|
45
|
-
|
46
40
|
read_end.close
|
47
41
|
STDOUT.reopen(write_end)
|
48
42
|
STDERR.reopen(write_end)
|
data/lib/tango/version.rb
CHANGED