IP Library Granted Patent US 7,124,403
Granted Patent B2
US 7,124,403 · App. 09/930,807 · Granted Oct 17, 2006

Methods and apparatus for managing defunct processes

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 7,124,403
App. No.
09/930,807
Granted
Oct 17, 2006
Kind
B2
Abstract

The present invention relates to managing defunct processes. A parent process that does not collect exit information associated with a child process may leave a defunct child process. A defunct child process is identified. The parent process of the defunct child process is modified. The parent process can be modified by changing an existing thread or instantiating a new thread to collect exit information associated with the child process. Collecting exit information causes the removal of the defunct child process.

Claims (30)

1. A computer-implemented method for a running parent process to collect exit information from a defunct child process associated with the running parent process, the computer-implemented method comprising:

identifying a running parent process associated with the defunct child process; and

modifying the running parent process associated with the defunct child process by creating an agent thread side the running parent process, the agent thread being operable to force the running parent process to collect exit information for the defunct child process, thereby enabling the collection of exit information for the defunct child process associated with the running parent process without terminating the running parent process.

2. The computer-implemented method of claim 1 , wherein modifying the parent process comprises altering the parent process to invoke wait( ) or waitpid( ).

3. The computer-implemented method of claim 1 , wherein a control criterion is used to determine whether to modify the parent process.

4. The computer-implemented method of claim 3 , wherein the control criterion comprises determining whether the parent process is stopped.

5. The computer-implemented method of claim 4 , wherein the control criterion comprises determining whether the defunct process is a newly defunct process, wherein the parent is modified only if it is determined that the defunct process is not a newly defunct process.

6. The computer-implemented method of claim 4 , wherein the control criterion comprises determining that the parent process is not an initial process.

7. A computer-implemented method for reaping a defunct child process associated with a running parent process, the computer-implemented method comprising:

identifying a defunct child process associated with the running parent process;

attaching an agent thread to the running parent process to allow modification of the running parent process, wherein the running parent process is modified to reap the defunct child process without terminating the running parent process.

8. The computer-implemented method of claim 7 , wherein a control criterion is used to determine whether to modify the parent process.

9. The computer-implemented method of claim 8 , wherein the control criterion comprises determining whether the parent process is stopped.

10. The computer-implemented method of claim 8 , wherein the control criterion comprises determining whether the defunct process is a newly defunct process, wherein the parent is modified only if it is determined that the defunct process is not a newly defunct process.

11. The computer-implemented method of claim 8 , wherein the control criterion comprises determining that the parent process is not an initial process.

12. A computer program product, stored on a machine-readable medium, for a running parent process to collect exit information from a defunct child process associated with the running parent process, the computer program product comprising instructions operable to cause a computer to:

identify a running parent process associated with the defunct child process; and

modify the running parent process associated with the defunct child process by creating an agent thread inside the running parent process, the agent thread being operable to force the running parent process to collect exit information for the defunct child process, thereby enabling the collection of exit information for the defunct child process associated with the running parent process without terminating the running parent process.

13. An apparatus for a running parent process to collect exit information from a defunct child process associated with the running parent process, the apparatus comprising:

means for identifying a running parent process associated with the defunct child process; and

means for modifying the running parent process associated with the defunct child process by creating an agent thread inside the running parent process, the agent thread being operable to force the running parent process to collect exit information for the defunct child process, thereby enabling the collection of exit information for the defunct child process associated with the running parent process without terminating the running parent process.

14. An apparatus for reaping a defunct child process associated with a running parent process, the apparatus comprising:

memory;

a processor coupled to memory, the processor being configured to:

identify a defunct child process associated with the parent process, and

attach an agent thread to the running parent process to allow modification of the running parent process wherein the running parent process is modified to reap the defunct child process without terminating the running parent process.

15. The apparatus of claim 14 , wherein a control criterion is used to determine whether to modify the parent process.

16. The apparatus of claim 15 , wherein the control criterion comprises determining whether the parent process is stopped.

17. The apparatus of claim 15 , wherein the control criterion comprises determining whether the defunct process is a newly defunct process, wherein the parent is modified only if it is determined that the defunct process is not a newly defunct process.

18. The apparatus of claim 15 , wherein the control criterion comprises determining that the parent process is not an initial process.

Assignments (2)
MERGER AND CHANGE OF NAME Recorded Dec 16, 2015
From: ORACLE USA, INC.; SUN MICROSYSTEMS, INC.; ORACLE AMERICA, INC.
To: ORACLE AMERICA, INC.
Reel/Frame 037302/0661 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 15, 2001
From: PRICE, DANIEL; FAULKNER, ROGER
To: SUN MICROSYSTEMS, INC.
Reel/Frame 012100/0965 →