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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P5 P5
    • tbd
    • 26
    • core-svc
    • None
    • 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.

            ghan Guanqiang Han
            cjplummer Chris Plummer
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: