Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
immerda
Puppet Modules
webhosting
Commits
b2e68727
Commit
b2e68727
authored
Jun 24, 2019
by
mh
Browse files
return the exitstatus of the forked process
parent
a70c0d33
Changes
1
Hide whitespace changes
Inline
Side-by-side
files/user_scripts/common/webscripts.rb
View file @
b2e68727
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment