chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
replace tabs with spaces in various files
[elogind.git]
/
src
/
activate
/
activate.c
diff --git
a/src/activate/activate.c
b/src/activate/activate.c
index 87526d47cc8e5babdbb37873f6f83846f0fe4052..83d25b13af9063e4c875c95e51b48c4e160644fd 100644
(file)
--- a/
src/activate/activate.c
+++ b/
src/activate/activate.c
@@
-290,16
+290,15
@@
static int do_accept(const char* name, char **argv, char **envp, int fd) {
}
/* SIGCHLD handler. */
}
/* SIGCHLD handler. */
-static void sigchld_hdl(int sig, siginfo_t *t, void *data)
-{
+static void sigchld_hdl(int sig, siginfo_t *t, void *data) {
log_info("Child %d died with code %d", t->si_pid, t->si_status);
log_info("Child %d died with code %d", t->si_pid, t->si_status);
- /* Wait for a dead child. */
- waitpid(t->si_pid, NULL, 0);
+
/* Wait for a dead child. */
+
waitpid(t->si_pid, NULL, 0);
}
static int install_chld_handler(void) {
int r;
}
static int install_chld_handler(void) {
int r;
- struct sigaction act;
+
struct sigaction act;
zero(act);
act.sa_flags = SA_SIGINFO;
act.sa_sigaction = sigchld_hdl;
zero(act);
act.sa_flags = SA_SIGINFO;
act.sa_sigaction = sigchld_hdl;