Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8004145

build-infra: hgforest.sh cannot be interrupted safely.

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • None
    • 8
    • infrastructure
    • b69

    Description

      When "sh get_source.sh" is used fetch the sources, it cannot be safely interrupted.
      Even though mercurial has support for proper rollback on ctrl-c, the ctrl-c does not
      reach the mercurial processes because of the way hgforest.sh spawns the background
      mercurial processes. This leaves the mercurial repositories in unsafe states, somtimes
      locked sometimes broken. This is especially noticeable when cloning from locations
      where the network is not fast.

      The fix consists of tracking the background processes and sending -TERM to them,
      when the user presses ctrl-c.

      Attachments

        Activity

          People

            ohrstrom Fredrik Öhrström
            ohrstrom Fredrik Öhrström
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: