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

VM uselessly traps SIGCHLD on Linux (cleanup)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 5.0
    • 1.3.1_09, 1.4.2, 1.4.2_05
    • hotspot
    • b05
    • generic, x86, itanium
    • linux, linux_redhat_4.0

        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.)

        -- ###@###.### 2002/11/26

              hhuangsunw Hui Huang (Inactive)
              mr Mark Reinhold
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: