Commit b2e68727 authored by mh's avatar mh
Browse files

return the exitstatus of the forked process

parent a70c0d33
......@@ -153,7 +153,8 @@ def sudo(uid,gid,&blk)
security_fail('could not drop privileges') unless Process::Sys.geteuid == uid
yield blk
end
Process.wait pid
pid, status = Process.wait2(pid)
return status
end
def on_filelist(list,owner)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment