aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorphilhofer <phofer@umich.edu>2018-12-23 12:10:56 -0800
committerWilliam Hubbs <w.d.hubbs@gmail.com>2018-12-24 10:36:12 -0600
commit97e74f97347f5798e01a47057efab00906754546 (patch)
tree693b7fa1b179f8e9cc31905117e99b7fe9095bc5 /src
parentd328de198d0ad980188b105decc09405652aa3d6 (diff)
src/rc/supervise-daemon.c: formatting fixes
Fix misleading indentation and other erroneous whitespace. This fixes #273.
Diffstat (limited to 'src')
-rw-r--r--src/rc/supervise-daemon.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/rc/supervise-daemon.c b/src/rc/supervise-daemon.c
index fec85594..aaa39397 100644
--- a/src/rc/supervise-daemon.c
+++ b/src/rc/supervise-daemon.c
@@ -237,7 +237,7 @@ static char * expand_home(const char *home, const char *path)
ppath++;
if (!home) {
- free(opath);
+ free(opath);
return xstrdup(path);
}
if (!ppath) {
@@ -535,7 +535,7 @@ static void supervisor(char *exec, char **argv)
sigaction(SIGTERM, &sa, NULL);
fp = fopen(pidfile, "w");
- if (! fp)
+ if (!fp)
eerrorx("%s: fopen `%s': %s", applet, pidfile, strerror(errno));
fprintf(fp, "%d\n", getpid());
fclose(fp);
@@ -557,10 +557,10 @@ static void supervisor(char *exec, char **argv)
alarm(healthcheckdelay);
else if (healthchecktimer)
alarm(healthchecktimer);
- failing = 0;
+ failing = 0;
while (!exiting) {
healthcheck_respawn = 0;
- fifo_fd = open(fifopath, O_RDONLY);
+ fifo_fd = open(fifopath, O_RDONLY);
if (fifo_fd > 0) {
memset(buf, 0, sizeof(buf));
count = read(fifo_fd, buf, sizeof(buf) - 1);
@@ -604,7 +604,7 @@ static void supervisor(char *exec, char **argv)
healthcheck_respawn = 1;
}
}
- if (exiting ) {
+ if (exiting) {
alarm(0);
syslog(LOG_INFO, "stopping %s, pid %d", exec, child_pid);
nkilled = run_stop_schedule(applet, NULL, NULL, child_pid, 0,
@@ -1062,8 +1062,8 @@ int main(int argc, char **argv)
c++;
}
xasprintf(&varbuf, "%d", x);
- rc_service_value_set(svcname, "argc", varbuf);
- free(varbuf);
+ rc_service_value_set(svcname, "argc", varbuf);
+ free(varbuf);
rc_service_value_set(svcname, "exec", exec);
supervisor(exec, argv);
} else