Patent ID: 8473918
Filing Date: 2013-06-25
Classification: G06F

Abstract:
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; initializing a background process variable for keeping track of a predetermined number of tries the parent process is checked to determine if the parent process is alive; determining if the parent process is alive for the 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; storing into the background process variable for so long as the parent process is active; determining whether a second, global temporary file is empty, wherein: writing the existing PID to a second PID variable; and executing a singleton code block.