debug agent should set FD_CLOEXEC flag rather than explicitly closing every open file

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P5
    • 26
    • Affects Version/s: 26
    • Component/s: core-svc
    • None
    • b10
    • generic
    • generic

      When the debug agent forks a child process, it closes all open files in the child process that were copied over from the parent process. A better approach is to instead set the FD_CLOEXEC flag on open files before doing the fork. See for example markDescriptorsCloseOnExec() in childproc.c.

            Assignee:
            Guanqiang Han
            Reporter:
            Chris Plummer
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: