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

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 6.04/02
    • Fix Version/s: 6.10/00, 6.08/08
    • Component/s: None
    • Labels:
      None
    • Environment:

      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

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

              Dates

              Created:
              Updated:
              Resolved:
              Actual End: