summaryrefslogtreecommitdiffstats
path: root/lib/puppet/reports
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-10-18 19:54:16 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-10-18 19:54:16 +0000
commite3b4f234a39f264b488c80fd526fe820a09fc16c (patch)
tree645bf43d3182457c2db7ad5a7cfa5984db81c397 /lib/puppet/reports
parent07f616badf4e067000fa5d49c2698b8b6b5a7609 (diff)
downloadpuppet-e3b4f234a39f264b488c80fd526fe820a09fc16c.tar.gz
puppet-e3b4f234a39f264b488c80fd526fe820a09fc16c.tar.xz
puppet-e3b4f234a39f264b488c80fd526fe820a09fc16c.zip
Another round of bugfixing, including finding out that the tagmail report was leaving zombie processes lying around
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1816 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/reports')
-rw-r--r--lib/puppet/reports/tagmail.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/puppet/reports/tagmail.rb b/lib/puppet/reports/tagmail.rb
index e842b17ac..2a00ea4c1 100644
--- a/lib/puppet/reports/tagmail.rb
+++ b/lib/puppet/reports/tagmail.rb
@@ -87,7 +87,7 @@ Puppet::Server::Report.newreport(:tagmail) do
# Let's fork for the sending of the email, since you never know what might
# happen.
- fork do
+ pid = fork do
if Puppet[:smtpserver] != "none"
begin
Net::SMTP.start(Puppet[:smtpserver]) do |smtp|
@@ -128,6 +128,8 @@ Puppet::Server::Report.newreport(:tagmail) do
raise Puppet::Error, "SMTP server is unset and could not find sendmail"
end
end
+
+ Process.detach(pid)
end
end