aboutsummaryrefslogtreecommitdiff
path: root/src/pies.h
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2016-02-23 18:04:52 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2016-02-23 18:04:52 +0200
commitdd2c48ddfc7f8bc62c565b43bbd42a3a2a87836d (patch)
treec160c3d7af3a7709fb33224e8344caafe581fcc4 /src/pies.h
parent6e73a7b0822d1fd506c75a662070f447bba94afb (diff)
downloadpies-dd2c48ddfc7f8bc62c565b43bbd42a3a2a87836d.tar.gz
pies-dd2c48ddfc7f8bc62c565b43bbd42a3a2a87836d.tar.bz2
Bugfixes
* lib/addrfmt.c: Include limits.h * src/ctl.c (fun_stop,fun_start): Ignore non-component progs. * src/pies.c (request_restart_components): Fix piesctl invocation. * src/pies.h (PIES_CHLD_RESCHEDULE_ALARM): New flag. (progman_wait_until): Remove. (progman_recompute_alarm): New proto. * src/progman.c (recompute_alarm): Remove. All uses raise PIES_CHLD_RESCHEDULE_ALARM instead. (progman_wake_sleeping): Handle status_stopping components independently on their activity flag. (prog_stop_all, progman_wait_until): Remove. (progman_stop): Rewrite using mark+sweep approach.
Diffstat (limited to 'src/pies.h')
-rw-r--r--src/pies.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/pies.h b/src/pies.h
index 3528e82..37eb4ba 100644
--- a/src/pies.h
+++ b/src/pies.h
@@ -320,10 +320,11 @@ void free_redirector (struct redirector *rp);
void pies_schedule_action (int act);
void free_action (struct action *act);
-#define PIES_CHLD_NONE 0
-#define PIES_CHLD_CLEANUP 0x01
-#define PIES_CHLD_WAKEUP 0x02
-#define PIES_CHLD_GC 0x04
+#define PIES_CHLD_NONE 0
+#define PIES_CHLD_CLEANUP 0x01
+#define PIES_CHLD_WAKEUP 0x02
+#define PIES_CHLD_GC 0x04
+#define PIES_CHLD_RESCHEDULE_ALARM 0x08
void pies_schedule_children (int op);
@@ -338,7 +339,6 @@ void progman_stop (void);
void progman_cleanup (int expect_term);
void progman_filter (int (*filter) (struct component *, void *data),
void *data);
-int progman_wait_until (int (*cond) (void *), void *data);
int progman_accept (int socket, void *data);
void progman_create_sockets (void);
@@ -348,6 +348,7 @@ struct component *progman_lookup_tcpmux (const char *service,
void progman_run_comp (struct component *comp, int fd,
union pies_sockaddr_storage *sa, socklen_t salen);
+void progman_recompute_alarm (void);
void fd_report (int fd, const char *msg);

Return to:

Send suggestions and report system problems to the System administrator.