Method for singleton process control
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. The PID is stored by a parent process and subsequently accessed by the background process. 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.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 5 · Forward citations: 2.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
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
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (2 of 2 total)
References Cited — Backward Prior Art (5)
Non-Patent Literature (3)
- Learning the Korn Shells, First Edition, Jun. 1993, http://docstore.mik.ua/orelly/unix/ksh/index.htm.
- libASSA Programmer's Manuel, v 1.2 Jul. 15, 2003, http://libassa.sourceforge.net/libassa-manual/C/book1.html chapter 1.5 http://libassa.sourceforge.net/libassa-manual/C/x274.html chapter 4.15 http://libassa.sourceforge.net/libassa-manual/C/x3032.html.
- Stevens, "Advanced Programming in the Unix Environment", Addison-Wesley, Second Edition, 2005, p. 211-212, 215-216, 423, 432-434.