METHOD FOR SINGLETON PROCESS CONTROL
First Claim
1. A method for singleton process control in a computer environment, comprising:
- storing a process identification (PID) of a last spawned process for a background process in a first temporary file, the PID stored by a parent process, and subsequently accessed by the background process that is initialized;
determining if the parent process is alive for a predetermined number of tries, wherein a PID of the background process is written from the first temporary file into a first PID variable when the parent process ends;
determining whether a second, global temporary file is empty, wherein;
if the global temporary file is empty;
commencing for a first time an associated program with the PID of the background process if a second, global temporary file is empty, andstoring the PID of the background process from the first temporary file into the second, global temporary file; and
writing the existing PID to a second PID variable.
3 Assignments
0 Petitions
Accused Products
Abstract
A method for singleton process control in a computer environment is provided. A process identification (PID) for a background process is stored in a first temporary file. A determination operation is performed for determining if the parent process is alive for a predetermined number of tries. The PID of the background process is written from the first temporary file into a first PID variable when the parent process ends. A determination operation is performed for determining whether a second, global temporary file is empty. The background process is exited if an active PID is determined to exist in a second, global temporary file. The PID from the first temporary file is stored into the second, global temporary file. A singleton code block is then executed.
-
Citations
27 Claims
-
1. A method for singleton process control in a computer environment, comprising:
-
storing a process identification (PID) of a last spawned process for a background process in a first temporary file, the PID stored by a parent process, and subsequently accessed by the background process that is initialized; determining if the parent process is alive for a predetermined number of tries, wherein a PID of the background process is written from the first temporary file into a first PID variable when the parent process ends; determining whether a second, global temporary file is empty, wherein; if the global temporary file is empty; commencing for a first time an associated program with the PID of the background process if a second, global temporary file is empty, and storing the PID of the background process from the first temporary file into the second, global temporary file; and writing the existing PID to a second PID variable. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A system for singleton process control in a computing environment, the system comprising:
-
a plurality of files in the computing system; at least one memory in the computing system; and at least one processor device operable in the computing environment the singleton process control in communication with the plurality of files and the at least one memory, wherein the at least one processor device; stores a process identification (PID) of a last spawned process for a background process in a first temporary file, the PID stored by a parent process, and subsequently accessed by the background process that is initialized, determines if the parent process is alive for a predetermined number of tries, wherein a PID of the background process is written from the first temporary file into a first PID variable when the parent process ends, and determining whether a second, global temporary file is empty, wherein; if the global temporary file is empty; commencing for a first time an associated program with the PID of the background process if a second, global temporary file is empty, and storing the PID of the background process from the first temporary file into the second, global temporary file; and writing the existing PID to a second PID variable. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17, 18)
-
-
19. A computer program product for singleton process control in a computer environment, the computer program product comprising a computer-readable storage medium having computer-readable program code portions stored therein, the computer-readable program code portions comprising:
-
a first executable portion that stores a process identification (PID) of a last spawned process for a background process in a first temporary file, the PID stored by a parent process, and subsequently accessed by the background process that is initialized; a second executable portion that determines if the parent process is alive for a predetermined number of tries, wherein a PID of the background process is written from the first temporary file into a first PID variable when the parent process ends; and a third executable portion that determines whether a second, global temporary file is empty, wherein; if the global temporary file is empty; commencing for a first time an associated program with the PID of the background process if a second, global temporary file is empty, and storing the PID of the background process from the first temporary file into the second, global temporary file; and writing the existing PID to a second PID variable. - View Dependent Claims (20, 21, 22, 23, 24, 25, 26, 27)
-
Specification