From e2959c22c7309836d6f5dba2f0db7b293b860ad8 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 28 Mar 2021 01:50:36 +0000 Subject: A few pieces of the future s6-rcd server --- src/server/transition.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/server/transition.h (limited to 'src/server/transition.h') diff --git a/src/server/transition.h b/src/server/transition.h new file mode 100644 index 0000000..fcddfa6 --- /dev/null +++ b/src/server/transition.h @@ -0,0 +1,22 @@ +/* ISC license. */ + +#ifndef S6RCD_TRANSITION_H +#define S6RCD_TRANSITION_H + +#include +#include + + + /* Transitions */ + +typedef struct transition_s transition_t, *transition_t_ref ; +struct transition_s +{ + pid_t pid ; +} ; +#define TRANSITION_ZERO { .pid = 0 } + +extern uint32_t ntransitions ; +transitions_t *transitions ; + +#endif -- cgit v1.2.3