Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-7659

ROOT signal handler should ignore SIGPIPE (or ignore it while it is handling it)

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Medium
    • Resolution: Fixed
    • 6.04/02
    • 6.10/00, 6.08/08
    • None
    • None
    • SFT builds

    Description

      When a process using ROOT gets a SIGPIPE, it enters an infinite loop if the SIGPIPE is both on stdout and stderr (e.g. for a redirection).

      This one liner (sh) exposes the problem:

      python -c 'import ROOT; print "hello"' |& true

      The process get stuck trying to handle the SIGPIPE it gets while handling the SIGPIPE...

      My suggestion would be to either ignore SIGPIPE or to mask a signal while handling it.

      Attachments

        Activity

          People

            mato Pere Mato Vila
            clemenci Marco Clemencic
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Actual End: