mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
cleanup: indents
This commit is contained in:
parent
b1319e0402
commit
1a2d0a0c72
@ -230,6 +230,7 @@ struct thread_status {
|
|||||||
void *dso_private; /* dso per-thread status variable */
|
void *dso_private; /* dso per-thread status variable */
|
||||||
/* TODO per-thread mutex */
|
/* TODO per-thread mutex */
|
||||||
};
|
};
|
||||||
|
|
||||||
static DM_LIST_INIT(_thread_registry);
|
static DM_LIST_INIT(_thread_registry);
|
||||||
static DM_LIST_INIT(_thread_registry_unused);
|
static DM_LIST_INIT(_thread_registry_unused);
|
||||||
|
|
||||||
@ -819,6 +820,7 @@ static sigset_t _unblock_sigalrm(void)
|
|||||||
sigemptyset(&set);
|
sigemptyset(&set);
|
||||||
sigaddset(&set, SIGALRM);
|
sigaddset(&set, SIGALRM);
|
||||||
pthread_sigmask(SIG_UNBLOCK, &set, &old);
|
pthread_sigmask(SIG_UNBLOCK, &set, &old);
|
||||||
|
|
||||||
return old;
|
return old;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1859,7 +1861,6 @@ static void _daemonize(void)
|
|||||||
case -1:
|
case -1:
|
||||||
log_sys_error("fork", "");
|
log_sys_error("fork", "");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
|
|
||||||
case 0: /* Child */
|
case 0: /* Child */
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -2107,8 +2108,6 @@ int main(int argc, char *argv[])
|
|||||||
.server_path = DM_EVENT_FIFO_SERVER
|
.server_path = DM_EVENT_FIFO_SERVER
|
||||||
};
|
};
|
||||||
time_t now, idle_exit_timeout = DMEVENTD_IDLE_EXIT_TIMEOUT;
|
time_t now, idle_exit_timeout = DMEVENTD_IDLE_EXIT_TIMEOUT;
|
||||||
//struct sys_log logdata = {DAEMON_NAME, LOG_DAEMON};
|
|
||||||
|
|
||||||
opterr = 0;
|
opterr = 0;
|
||||||
optind = 0;
|
optind = 0;
|
||||||
|
|
||||||
@ -2195,6 +2194,7 @@ int main(int argc, char *argv[])
|
|||||||
/* Signal parent, letting them know we are ready to go. */
|
/* Signal parent, letting them know we are ready to go. */
|
||||||
if (!_foreground)
|
if (!_foreground)
|
||||||
kill(getppid(), SIGTERM);
|
kill(getppid(), SIGTERM);
|
||||||
|
|
||||||
log_notice("dmeventd ready for processing.");
|
log_notice("dmeventd ready for processing.");
|
||||||
|
|
||||||
_idle_since = time(NULL);
|
_idle_since = time(NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user