move Main Loop to a separate clone process
This commit is contained in:
@@ -22,6 +22,7 @@ char* phone_connection=NULL; // gammu phone connection type, for example: "at"
|
||||
char* recipient_number=NULL; // recipient of sms alerts
|
||||
bool loop_locked=false ; // flag for locking main loop while config re-reading
|
||||
int failures_first=3 ; // count of failures while hosts checking, that triggers first SMS sending
|
||||
pid_t mainloop_clone_pid; // pid of clone process, that containt main loop
|
||||
|
||||
void log_debug(const char *message,int verbosity)
|
||||
{
|
||||
@@ -158,8 +159,12 @@ void reset_pin(int pin_num)
|
||||
outb (0, LPTPORT);
|
||||