diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-03-14 19:00:08 +0100 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-03-14 19:03:53 +0100 |
commit | 9c9fd5da15573a702efe5adc054c96a9eb8aa0ce (patch) | |
tree | 47b14650b9dc34e032a9e744651b1b921365d206 /src/dmon.c | |
parent | 55262a30743095ad4dbc14dc06f4487be11f9bd8 (diff) | |
download | calcurse-9c9fd5da15573a702efe5adc054c96a9eb8aa0ce.zip |
Overall indentation fixes.
Use spaces instead of tabs for source code indentation only, strip
trailing whitespaces from lines.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/dmon.c')
-rw-r--r-- | src/dmon.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -69,7 +69,7 @@ dmon_sigs_hdlr (int sig) { if (data_loaded) free_user_data (); - + DMON_LOG (_("terminated at %s with signal %d\n"), nowstr (), sig); if (unlink (path_dpid) != 0) @@ -78,7 +78,7 @@ dmon_sigs_hdlr (int sig) strerror (errno)); exit (EXIT_FAILURE); } - + exit (EXIT_SUCCESS); } @@ -86,7 +86,7 @@ static unsigned daemonize (int status) { int fd; - + /* * Operate in the background: Daemonizing. * @@ -127,7 +127,7 @@ daemonize (int status) strerror (errno)); return 0; } - + /* Redirect standard file descriptors to /dev/null. */ if ((fd = open (_PATH_DEVNULL, O_RDWR, 0)) != -1) { @@ -155,7 +155,7 @@ void dmon_start (int parent_exit_status) { struct conf conf; - + if (!daemonize (parent_exit_status)) DMON_ABRT (_("Cannot daemonize, aborting\n")); @@ -166,7 +166,7 @@ dmon_start (int parent_exit_status) DMON_ABRT (_("Could not access \"%s\": %s\n"), path_conf, strerror (errno)); custom_load_conf (&conf, 0); - + if (!io_file_exist (path_apts)) DMON_ABRT (_("Could not access \"%s\": %s\n"), path_apts, strerror (errno)); @@ -179,7 +179,7 @@ dmon_start (int parent_exit_status) for (;;) { int left; - + if (!notify_get_next_bkgd ()) DMON_ABRT (_("error loading next appointment\n")); @@ -191,7 +191,7 @@ dmon_start (int parent_exit_status) if (!notify_launch_cmd ()) DMON_LOG (_("error while sending notification\n")); } - + DMON_LOG (_("sleeping at %s for %d seconds\n"), nowstr (), DMON_SLEEP_TIME); psleep (DMON_SLEEP_TIME); |