Hi, See attached an attempt to fix issue 2619 (http://subversion.tigris.org/issues/show_bug.cgi?id=2619).
[[[ Fix issue 2619 by explaining how to prevent svn from waiting for the background processes when one wants to spawn some work asynchroneously in the post-commit hook * subversion/libsvn_repos/repos.c (create_hooks): Add a paragraph about proper backgrounding to the template comment. ]]] Best regards Markus Schaber CODESYS(r) a trademark of 3S-Smart Software Solutions GmbH Inspiring Automation Solutions 3S-Smart Software Solutions GmbH Dipl.-Inf. Markus Schaber | Product Development Core Technology Memminger Str. 151 | 87439 Kempten | Germany Tel. +49-831-54031-979 | Fax +49-831-54031-50 E-Mail: m.scha...@codesys.com | Web: http://www.codesys.com | CODESYS store: http://store.codesys.com CODESYS forum: http://forum.codesys.com Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915
Index: subversion/libsvn_repos/repos.c =================================================================== --- subversion/libsvn_repos/repos.c (revision 1603773) +++ subversion/libsvn_repos/repos.c (working copy) @@ -765,6 +765,15 @@ "# '"SCRIPT_NAME".bat' or '"SCRIPT_NAME".exe'," NL "# but the basic idea is the same." NL "# " NL +"# If you want to trigger asynchroneous work by spawning other processes," NL +"# you need to prevent svnserve from waiting for those child processes to" NL +"# finish. On Linux, this can be done by redirecting stdout and stderr of" NL +"# the subprocesses. On Windows, using the \"start\" command usually also" NL +"# inherits the handles, triggering the same problem. You can circumvent" NL +"# it by using alternative methods which do not inherit the handles and set" NL +"# the DETACHED_PROCESS flag, such as calling WScript.Shell.Run via the" NL +"# Windows Scripting Host." NL +"# " NL HOOKS_ENVIRONMENT_TEXT "# " NL "# Here is an example hook script, for a Unix /bin/sh interpreter." NL