|
Lines 20-25
Link Here
|
| 20 |
#include <dirent.h> |
20 |
#include <dirent.h> |
| 21 |
#include <sys/types.h> |
21 |
#include <sys/types.h> |
| 22 |
#include <sys/wait.h> |
22 |
#include <sys/wait.h> |
|
|
23 |
#include <signal.h> |
| 23 |
|
24 |
|
| 24 |
#include "globals.h" |
25 |
#include "globals.h" |
| 25 |
#include "firestarter.h" |
26 |
#include "firestarter.h" |
|
Lines 326-331
Link Here
|
| 326 |
return TRUE; |
327 |
return TRUE; |
| 327 |
} |
328 |
} |
| 328 |
|
329 |
|
|
|
330 |
static void |
| 331 |
sig_usr1_handler (int signo G_GNUC_UNUSED) |
| 332 |
{ |
| 333 |
/* reestablish handler */ |
| 334 |
signal(SIGUSR1, sig_usr1_handler); |
| 335 |
|
| 336 |
/* add an idle call to the sync function */ |
| 337 |
g_idle_add(status_sync_idle_oneshot, NULL); |
| 338 |
|
| 339 |
return; |
| 340 |
} |
| 341 |
|
| 329 |
/* [ main ] |
342 |
/* [ main ] |
| 330 |
* The main function, this is where it all begins and ends |
343 |
* The main function, this is where it all begins and ends |
| 331 |
*/ |
344 |
*/ |
|
Lines 406-412
Link Here
|
| 406 |
gui_construct (); |
419 |
gui_construct (); |
| 407 |
/* Attach a timeout that keeps the GUI fw status in sync with userland changes */ |
420 |
/* Attach a timeout that keeps the GUI fw status in sync with userland changes */ |
| 408 |
status_sync_timeout (NULL); /* Do one immediate refresh */ |
421 |
status_sync_timeout (NULL); /* Do one immediate refresh */ |
| 409 |
g_timeout_add (5000, status_sync_timeout, NULL); |
422 |
g_timeout_add (30000, status_sync_timeout, NULL); |
|
|
423 |
/* connect a signal to allow for external sync requests */ |
| 424 |
signal (SIGUSR1, sig_usr1_handler); |
| 410 |
|
425 |
|
| 411 |
/* Initialize the system log file polling function */ |
426 |
/* Initialize the system log file polling function */ |
| 412 |
open_logfile ((gchar *)get_system_log_path ()); |
427 |
open_logfile ((gchar *)get_system_log_path ()); |