Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

open-axiom repository from github

24005 views
1
/*
2
Copyright (c) 1991-2002, The Numerical ALgorithms Group Ltd.
3
All rights reserved.
4
5
Copyright (C) 2007, Gabriel Dos Reis.
6
All rights reserved.
7
8
Redistribution and use in source and binary forms, with or without
9
modification, are permitted provided that the following conditions are
10
met:
11
12
- Redistributions of source code must retain the above copyright
13
notice, this list of conditions and the following disclaimer.
14
15
- Redistributions in binary form must reproduce the above copyright
16
notice, this list of conditions and the following disclaimer in
17
the documentation and/or other materials provided with the
18
distribution.
19
20
- Neither the name of The Numerical ALgorithms Group Ltd. nor the
21
names of its contributors may be used to endorse or promote products
22
derived from this software without specific prior written permission.
23
24
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
25
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
26
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
27
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
28
OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
29
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
30
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
31
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
32
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
33
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
34
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35
*/
36
37
/* Process control definitions. Used by fork_you and spawn_of_hell */
38
39
/* When a process dies it kills off everything else */
40
#define Die 1
41
/* When a process dies, do nothing */
42
#define NadaDelShitsky 2
43
/* When a process dies start it up again */
44
#define DoItAgain 3
45
/* When hypertex dies, clean its socket */
46
#define CleanHypertexSocket 4
47
48
typedef struct spad_proc {
49
int proc_id; /* process id of child */
50
int death_action; /* one of the above constants */
51
const char* command; /* sh command line to restart the process */
52
struct spad_proc *next;
53
} SpadProcess;
54
55
56