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

VM uselessly traps SIGCHLD on Linux (cleanup)

XMLWordPrintable

    • Icon: Backport Backport
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.2_11
    • None
    • hotspot
    • b01

      On both i486 and ia64 Linux the runtime code traps SIGCHLD and handles it as
      follows:

        /* from os_linux_i486.cpp; ia64 code is identical */
        if (sig == SIGCHLD) {
          // cleanup zombie pid for child thread
          ::waitpid(-1, 0, WNOHANG);
          return 1;
        }

      This test, and the corresponding setup of the signal handler to catch SIGCHLD,
      serve no purpose and should be removed. (See 4763362 for details.)

            tmoscovisunw Tal Moscovitz (Inactive)
            tmoscovisunw Tal Moscovitz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: