Uploaded image for project: 'Subversion'
  1. Subversion
  2. SVN-2661

Should read hook output before reaping.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.1.x
    • ---
    • libsvn_subr
    • 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

          Activity

            People

              Unassigned Unassigned
              subversion-importer Subversion Importer
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: