summaryrefslogtreecommitdiff
path: root/socket.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-04-24 02:05:42 +0200
committerLennart Poettering <lennart@poettering.net>2010-04-24 02:05:42 +0200
commite93bc5a61f8589f01e779ab2b5ffc7c7ca072074 (patch)
treea857e894b6917bbfddddc6bc7be7c838a80fa151 /socket.c
parent4e8e2288650780f74f90ee0c5133c1effbfdca17 (diff)
service: don't wait for any child unless we no its pid
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/socket.c b/socket.c
index 6d15cfe0e9..755bc598da 100644
--- a/socket.c
+++ b/socket.c
@@ -667,7 +667,7 @@ static void socket_enter_signal(Socket *s, SocketState state, bool success) {
}
}
- if (sent) {
+ if (sent && s->control_pid > 0) {
if ((r = unit_watch_timer(UNIT(s), s->timeout_usec, &s->timer_watch)) < 0)
goto fail;