Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
1.1.x
-
None
-
Linux
Description
In svn_io_run_cmd (which is used to execute hooks), subversion calls waitpid() on the child and only then reads the child's output. This means that if the script attempts to create more output than will fit in the kernel buffer, a deadlock condition will result -- the script waits for subversion to read, and subversion waits for the script to exit. The best way to handle this is to first read the script's standard error until the read yields EOF (or EPIPE) and only then reap the child.
Original issue reported by zmandan
Attachments
Issue Links
- duplicates
-
SVN-2078 Hook scripts hang if writing a lot to stderr
- Closed