X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=socket.c;h=755bc598da7e035b3a278525b543e717ff4caec4;hb=6e620becc8543e9ea8381fcd779dd932c2464749;hp=6d15cfe0e9e3f345f74009803559f803b56fbc5e;hpb=2d02719c2bcf8b5e30228e00eaceae91946c7551;p=elogind.git diff --git a/socket.c b/socket.c index 6d15cfe0e..755bc598d 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;