summaryrefslogtreecommitdiff
path: root/src/socket.c
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2012-04-02 21:49:00 +0200
committerMichal Schmidt <mschmidt@redhat.com>2012-04-02 21:49:00 +0200
commit60089004254c68173c4e3a2ca2eda0b6102ba96f (patch)
tree64d818765d6885bc1499585fa72326a28d646782 /src/socket.c
parentfb5ef067c493c5c59b72296d9c520be1dc54b79e (diff)
Revert "socket: if we fail to create an instantiated service for a socket, don't put the socket in failure mode"
This reverts commit 9586cdfab6a2638078702b7fea7e16b3a71899e2. (but not the TODO hunk). The bug was already fixed by 1a710b43. And if other errors occur, we don't want to leave the socket active in order to avoid having socket tarpits.
Diffstat (limited to 'src/socket.c')
-rw-r--r--src/socket.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/socket.c b/src/socket.c
index 1cd98e2992..bb75d960ab 100644
--- a/src/socket.c
+++ b/src/socket.c
@@ -1494,6 +1494,7 @@ static void socket_enter_running(Socket *s, int cfd) {
fail:
log_warning("%s failed to queue socket startup job: %s", UNIT(s)->id, bus_error(&error, r));
+ socket_enter_stop_pre(s, SOCKET_FAILURE_RESOURCES);
if (cfd >= 0)
close_nointr_nofail(cfd);