Package: daemon Version: 0.6.3-1 Severity: normal A common problem in svn post-commit scripts is slow commands that block the commit from finishing until they return. I thought I'd try to speed up my svn commits by using daemon to avoid this wait, but it doesn't work very well:
11165 ? S 0:00 \_ /bin/sh /srv/svn/ikiwiki/hooks/post-commit /srv/svn/ikiwiki 2004 11178 ? S 0:00 \_ daemon perl -- -e sleep 600 11179 ? S 0:00 \_ perl -e sleep 600 Why is the post-commit script waiting on daemon? I guess that daemon must not be sufficiently detaching to let this happen, and my guess is that daemon is not double-forking to the background. I was able to get the process to fully daemonize so that the post-commit script didn't wait for it, by using daemon to daemonize daemon, thus: daemon daemon perl -- -- -e 'sleep 600' -- System Information: Debian Release: 4.0 APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-3-686 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Versions of packages daemon depends on: ii libc6 2.3.6.ds1-9 GNU C Library: Shared libraries daemon recommends no packages. -- no debconf information -- see shy jo
signature.asc
Description: Digital signature