move Main Loop to a separate clone process

This commit is contained in:
2011-12-18 12:07:40 +04:00
parent 52b69a0196
commit 7ecbe35d83
+12 -5
View File
@@ -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);