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

Deprecated vfork() should not be used on Solaris

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • None
    • core-libs
    • b135
    • x86, sparc
    • solaris, solaris_11, solaris_12

      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.

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

              Created:
              Updated:
              Resolved: