aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore29
l---------COPYING1
-rw-r--r--ChangeLog.mfd342
-rw-r--r--Makefile.am35
-rw-r--r--NEWS33
-rw-r--r--README0
-rw-r--r--THANKS0
-rw-r--r--am/aggr.m460
-rw-r--r--am/gcc.m467
-rw-r--r--am/proctitle.m479
-rw-r--r--bootstrap.conf13
-rw-r--r--configure.ac97
-rw-r--r--doc/.gitignore22
-rw-r--r--doc/Makefile.am39
-rw-r--r--doc/pies.texi176
-rw-r--r--gnulib.modules10
-rw-r--r--lib/Makefile.am33
-rw-r--r--lib/config.c115
-rw-r--r--lib/intprops.h79
-rw-r--r--lib/libpies.h70
-rw-r--r--lib/nls.c34
-rw-r--r--lib/parsetime.c109
-rw-r--r--lib/proctitle.c164
-rw-r--r--lib/userprivs.c291
-rw-r--r--po/.gitignore21
-rw-r--r--po/POTFILES.in19
-rw-r--r--src/.gitignore (renamed from pies/.gitignore)0
-rw-r--r--src/Makefile.am (renamed from pies/Makefile.am)5
-rw-r--r--src/depmap.c (renamed from pies/depmap.c)0
-rw-r--r--src/limits.c (renamed from pies/limits.c)0
-rw-r--r--src/meta1gram.y (renamed from pies/meta1gram.y)0
-rw-r--r--src/meta1lex.h (renamed from pies/meta1lex.h)0
-rw-r--r--src/meta1lex.l (renamed from pies/meta1lex.l)0
-rw-r--r--src/pies.c (renamed from pies/pies.c)10
-rw-r--r--src/pies.h (renamed from pies/pies.h)6
-rw-r--r--src/pies.rcin (renamed from pies/pies.rcin)0
-rw-r--r--src/progman.c (renamed from pies/progman.c)0
-rw-r--r--src/socket.c (renamed from pies/socket.c)0
38 files changed, 1874 insertions, 85 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..f7b417d
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,29 @@
1*.a
2*.la
3*.lo
4*.o
5*.tar.*
6*~
7.bootstrap
8.deps
9.emacs*
10.gdbinit
11.libs
12ABOUT-NLS
13ChangeLog
14INSTALL
15Makefile
16Makefile.in
17TAGS
18aclocal.m4
19autom4te.cache/
20build-aux
21config.h
22config.h.in
23config.log
24config.status
25configure
26core
27gnu
28m4
29stamp-h1
diff --git a/COPYING b/COPYING
new file mode 120000
index 0000000..6168a39
--- /dev/null
+++ b/COPYING
@@ -0,0 +1 @@
/usr/share/automake-1.11/COPYING \ No newline at end of file
diff --git a/ChangeLog.mfd b/ChangeLog.mfd
new file mode 100644
index 0000000..7c4fcd5
--- /dev/null
+++ b/ChangeLog.mfd
@@ -0,0 +1,342 @@
12009-08-27 Sergey Poznyakoff <gray@gnu.org.ua>
2
3 Fix diagnostic and help messages.
4
5 1. Option descriptions in `--help' output do not constitute
6 conceptual sentences. Therefore, they should not begin
7 with a capital letter, nor end with a final point.
8 2. According to standards.texi, a diagnostic message in a
9 non-interactive program "should not begin with a capital letter
10 when it follows a program name and/or file name, because that
11 isn't the beginning of a sentence. (The sentence conceptually
12 starts at the beginning of the line.) Also, it should not end
13 with a period."
14
15 Affected files:
16
17 * pies/pies.c
18 * pies/progman.c
19
202009-06-17 Sergey Poznyakoff <gray@gnu.org.ua>
21
22 Bugfixes.
23
24 * pies/pies.c (main): Change main loop to do..while,
25 otherwise a signal arriving before entering the loop
26 might cause the program to terminate.
27
282009-06-14 Sergey Poznyakoff <gray@gnu.org.ua>
29
30 Fix and improve termination actions.
31
32 * pies/pies.h (MAX_RETURN_CODE): Remove.
33 (STATUS_SIG_BIT, STATUS_CODE): New defines
34 (struct action): New fields next, nstat, status, command.
35 (struct component): Keep singly-linked list of termination
36 actions.
37 * pies/progman.c (run_command): New function.
38 (progman_cleanup): Redo iteration over termination actions.
39 * pies/pies.c (return_code_cfg_param): Pass offsets in
40 struct component.
41 (create_action): Accept signal numbers (SIG.* or SIG\+[0-9]+)
42 in tag.
43 (return_code_section_parser): Update.
44 (pies_check_status): Set *pid before returning pies_status_stale.
45 * doc/pies.texi: Document changes.
46
472009-06-04 Sergey Poznyakoff <gray@gnu.org.ua>
48
49 MeTA1-related improvements.
50
51 * pies/pies.c (_cm_include_meta1): Fix coredump on syntax errors
52 in meta1.conf.
53
542009-05-21 Sergey Poznyakoff <gray@gnu.org.ua>
55
56 More work on `silent rules' mode
57
58 * pies/Makefile.am: Add silent rule markers.
59
602009-05-13 Sergey Poznyakoff <gray@gnu.org.ua>
61
62 Minor change
63
64 * pies/progman.c: Use _exit in child processes. This
65 is a work over a fault in MU design: it registers
66 the pidfile removal function via atexit.
67
682008-12-26 Sergey Poznyakoff <gray@gnu.org.ua>
69
70 * doc/pies.texi: Update.
71
72 git-svn-id: file:///svnroot/mailfromd/trunk@1771
73 7a8a7f39-df28-0410-adc6-e0d955640f24
74
752008-12-01 Sergey Poznyakoff <gray@gnu.org.ua>
76
77 Documentation and minor fixes.
78
79 * pies/pies.c, pies/progman.c, pies/meta1gram.y, pies/pies.h,
80 pies/meta1lex.l: Normalize output redirection terminology, fix the
81 debug levels.
82 * doc/pies.texi: Document the configuration.
83
842008-11-21 Sergey Poznyakoff <gray@gnu.org.ua>
85
86 * pies/pies.c (component_cfg_param): New statement settle-timeout.
87 * pies/progman.c (recompute_alarm): New static;
88 (prog_start): Start the component only if all of its prerequisites
89 are running.
90 (progman_recompute_alarm): New function.
91 (progman_start): Reset recompute_alarm to 0.
92 (check_stopping): New function.
93 (progman_wake_sleeping): Handle also status_stopping and
94 status_enabled. Recompute alarm before leaving.
95 (prog_start_prerequisites): Return 0 or 1 depending on whether all
96 prerequisites have been started.
97 (prog_stop): Raise recompute_alarm for stopping components.
98 (progman_cleanup): Force status_enabled before attepmting to
99 start a component.
100 (progman_cleanup): Add a \n after debugging message.
101 Run progman_wake_sleeping unlsess expect_term is set.
102 * pies/meta1gram.y (translate_node_list): Force settle-timeout =
103 1.
104 * pies/pies.h (struct component.settle_timeout): New member.
105
106 * pies/pies.c (main): New options --force, --dump-prereq and
107 --dump-depmap.
108 Refuse to start if another instance is already running.
109 (pies_check_status): New function.
110 (pies_status): Rewrite using pies_check_status.
111 * pies/progman.c (component_fixup_depend): Bugfix: move
112 mu_list_append off the conditional.
113 (progman_dump_prereq, progman_dump_depmap): New functions.
114 * pies/meta1gram.y (yyerror): Return 0.
115 * pies/pies.h (progman_dump_prereq, progman_dump_depmap): New
116 protos.
117 (meta1_parser_set_debug, meta1lex, meta1error)
118 (meta1parse): Likewise.
119
120 * pies/progman.c (print_dep): New function.
121 (progman_build_depmap): Call print_dep to facilitate fixing cyclic
122 dependencies.
123 (prog_start_prerequisites): Fix debugging output.
124 Remove spurious second loop (was it a typo or copy-paste
125 leftover?)
126 (prog_stop_dependents): Fix debugging output.
127 (progman_dump_stats): Avoid race conditions between running and
128 querying instances.
129
1302008-11-17 Sergey Poznyakoff <gray@gnu.org.ua>
131
132 Fix handling of retranslators.
133
134 * pies/pies.c (main): Call progman_build_depmap and
135 progman_create_sockets before starting up components.
136 * pies/progman.c (struct prog): New member `retr'.
137 (destroy_prog): New function.
138 (retr_tag): Change signature. Fix erroneous condition for
139 xalloc_die.
140 (register_retr): Return prog. Make static. Initialize idx
141 with -1.
142 (update_retr): Register retranslator, if necessary.
143 (progman_register_retranslators): Remove.
144 (register_prog0): 2nd argument: index.
145 (register_prog): Do not create socket at once.
146 (prog_start): Remove debugging fprintf.
147 (progman_accept): Update call to register_prog0.
148 (progman_create_sockets): New function.
149 (progman_start): Remove calls to progman_register_retranslators
150 and progman_build_depmap. They must be done only once.
151 (prog_stop_retranslators): New function.
152 (prog_stop_dependents): Call prog_stop_retranslators.
153 (progman_cleanup): Remove dangling retranslators.
154 * pies/pies.h (progman_create_sockets): New prototype.