/*1Copyright (c) 1991-2002, The Numerical ALgorithms Group Ltd.2All rights reserved.34Copyright (C) 2007, Gabriel Dos Reis.5All rights reserved.67Redistribution and use in source and binary forms, with or without8modification, are permitted provided that the following conditions are9met:1011- Redistributions of source code must retain the above copyright12notice, this list of conditions and the following disclaimer.1314- Redistributions in binary form must reproduce the above copyright15notice, this list of conditions and the following disclaimer in16the documentation and/or other materials provided with the17distribution.1819- Neither the name of The Numerical ALgorithms Group Ltd. nor the20names of its contributors may be used to endorse or promote products21derived from this software without specific prior written permission.2223THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS24IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED25TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A26PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER27OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,28EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,29PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR30PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF31LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING32NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS33SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.34*/3536/* Process control definitions. Used by fork_you and spawn_of_hell */3738/* When a process dies it kills off everything else */39#define Die 140/* When a process dies, do nothing */41#define NadaDelShitsky 242/* When a process dies start it up again */43#define DoItAgain 344/* When hypertex dies, clean its socket */45#define CleanHypertexSocket 44647typedef struct spad_proc {48int proc_id; /* process id of child */49int death_action; /* one of the above constants */50const char* command; /* sh command line to restart the process */51struct spad_proc *next;52} SpadProcess;53545556