diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-07-28 17:44:52 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-07-28 17:44:52 +0200 |
commit | 47f402aac6a10f2b7f4db54e9ebdd2d47b296d4a (patch) | |
tree | 7416c806e267e233d5c3533675f6edb95a9c3453 /src/mds-base.c | |
parent | use of mutexe when removing protocols due to server closing (diff) | |
download | mds-47f402aac6a10f2b7f4db54e9ebdd2d47b296d4a.tar.gz mds-47f402aac6a10f2b7f4db54e9ebdd2d47b296d4a.tar.bz2 mds-47f402aac6a10f2b7f4db54e9ebdd2d47b296d4a.tar.xz |
doc
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/mds-base.c | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/mds-base.c b/src/mds-base.c index f1eab34..9baa42e 100644 --- a/src/mds-base.c +++ b/src/mds-base.c @@ -38,17 +38,62 @@ #define try(INSTRUCTION) if ((r = INSTRUCTION)) goto fail +/** + * Number of elements in `argv` + */ int argc = 0; + +/** + * Command line arguments + */ char** argv = NULL; + +/** + * Whether the server has been respawn + * rather than this being the initial spawn. + * This will be at least as true as `is_reexec`. + */ int is_respawn = -1; + +/** + * Whether the server is continuing + * from a self-reexecution + */ int is_reexec = 0; + +/** + * Whether to fork the process when the + * server has been properly initialised + */ int on_init_fork = 0; + +/** + * Command the run (`NULL` for none) when + * the server has been properly initialised + */ char* on_init_sh = NULL; + +/** + * The thread that runs the master loop + */ pthread_t master_thread; + +/** + * Whether the server has been signaled to terminate + */ volatile sig_atomic_t terminating = 0; + +/** + * Whether the server has been signaled to re-exec + */ volatile sig_atomic_t reexecing = 0; + +/** + * The file descriptor of the socket + * that is connected to the server + */ int socket_fd = -1; |