[config] Try to set notifier file descriptor to non-blocking mode; add start/stop_notifier functions
If setting to non-blocking fails, just closing the fd should kill it anywaypull/109/head
parent
841d76c6af
commit
e72a7bdd76
@ -1,13 +1,13 @@
|
||||
#include <thread>
|
||||
#include <mutex>
|
||||
#include "overlay_params.h"
|
||||
|
||||
struct notify_thread
|
||||
{
|
||||
int fd = -1, wd = -1;
|
||||
overlay_params *params = nullptr;
|
||||
bool quit = false;
|
||||
std::mutex mutex;
|
||||
};
|
||||
|
||||
extern pthread_t fileChange;
|
||||
extern void *fileChanged(void *params_void);
|
||||
bool start_notifier(notify_thread& nt);
|
||||
void stop_notifier(notify_thread& nt);
|
||||
|
Loading…
Reference in New Issue