Configuration handling.
More...
#include "compile_time.h"
#include "src/lib/signal.h"
#include "dist/mongoose/mongoose.h"
#include "src/lib/api.h"
#include "src/lib/event.h"
#include "src/lib/log.h"
#include "src/lib/msg_queue.h"
#include <pthread.h>
|
|
sig_atomic_t | s_signal_received |
| | Signal received indicator.
|
| |
◆ mympd_signal_handler()
| static void mympd_signal_handler |
( |
int |
sig_num | ) |
|
|
static |
Signal handler that stops myMPD on SIGTERM and SIGINT and saves states on SIGHUP
- Parameters
-
| sig_num | the signal to handle |
◆ set_signal_handler()
| bool set_signal_handler |
( |
int |
sig_num | ) |
|
Sets the mympd_signal_handler for the given signal
- Parameters
-
- Returns
- true on success, else false