aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/UserInfo.pm
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-02-21 09:15:04 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-02-21 09:15:04 +0000
commitb6e6a2154d8be7da67dd6adc371100129fd1f752 (patch)
treeb4170584334ed3556cf43fe383febe89044826f0 /IkiWiki/UserInfo.pm
parent67bc7ca8a117ce06506d8a38f58b573456406669 (diff)
downloadikiwiki-b6e6a2154d8be7da67dd6adc371100129fd1f752.tar
ikiwiki-b6e6a2154d8be7da67dd6adc371100129fd1f752.tar.gz
using setsid before import.. how did that ever work?
Diffstat (limited to 'IkiWiki/UserInfo.pm')
-rw-r--r--IkiWiki/UserInfo.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/UserInfo.pm b/IkiWiki/UserInfo.pm
index 02c27991c..99b3c9f0a 100644
--- a/IkiWiki/UserInfo.pm
+++ b/IkiWiki/UserInfo.pm
@@ -157,8 +157,8 @@ sub send_commit_mails ($$$@) { #{{{
# Daemonize, in case the mail sending takes a while.
defined(my $pid = fork) or error("Can't fork: $!");
return if $pid;
- setsid() or error("Can't start a new session: $!");
eval q{use POSIX 'setsid'};
+ setsid() or error("Can't start a new session: $!");
chdir '/';
open STDIN, '/dev/null';
open STDOUT, '>/dev/null';