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

Deprecated vfork() should not be used on Solaris

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b135
    • CPU:
      x86, sparc
    • OS:
      solaris, solaris_11, solaris_12

      Description

      The Solaris manpage for vfork() says:

      The vfork() and vforkx() functions are deprecated. Their sole legiti-
      mate use as a prelude to an immediate call to a function from the exec
      family can be achieved safely by posix_spawn(3C) or posix_spawnp(3C).

      and use of vfork() generates compilation warnings:

      warning: "vfork" is deprecated, declared in : "/usr/include/unistd.h", line 535

      and when Java is built with warnings-as-errors (the default), the build fails as a result.

      Code that uses vfork() on Solaris should therefore be removed.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alanbur Alan Burlison
                Reporter:
                alanbur Alan Burlison
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: