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

Use SOCK_CLOEXEC when creating sockets and channels

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 9, 10, 11, 12
    • core-libs
    • None

      To better support fork and exec from native code, SOCK_CLOEXEC, if available, should be set by the Socket and Channel API's when creating new sockets.

      This issue has been filed to track the, similar, proposal on net-dev:
        http://mail.openjdk.java.net/pipermail/net-dev/2018-July/011622.html

      This JIRA issue, by itself, does not completely resolve the problem of native code calling fork/exec, it may still have to deal with other file descriptors that are inherited by the child. Instead this JIRA issue is targeted at the socket and channels areas only, other areas should be tackled on a phased approach through separate JIRA issues.

            chegar Chris Hegarty
            chegar Chris Hegarty
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: