summaryrefslogtreecommitdiff
path: root/src/core/socket.c
diff options
context:
space:
mode:
authorMantas Mikulėnas <grawity@gmail.com>2015-04-29 21:29:18 +0300
committerTom Gundersen <teg@jklm.no>2015-04-29 20:38:48 +0200
commitcfa9677bd164574600d29a9bf99f9d1f28a7a170 (patch)
treea6dced6bb094c4e0a00b08cdd3a45bce069e436d /src/core/socket.c
parent966c66e34940001a40806142ecebaae61b478444 (diff)
core: fix event source annotations
These looked like a mass-replace gone slightly wrong – two statements with no { }'s, and no error checking.
Diffstat (limited to 'src/core/socket.c')
-rw-r--r--src/core/socket.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/socket.c b/src/core/socket.c
index 702742f2a9..67beda44d6 100644
--- a/src/core/socket.c
+++ b/src/core/socket.c
@@ -1272,11 +1272,12 @@ static int socket_watch_fds(Socket *s) {
else
r = sd_event_add_io(UNIT(s)->manager->event, &p->event_source, p->fd, EPOLLIN, socket_dispatch_io, p);
- (void) sd_event_source_set_description(p->event_source, "socket-port-io");
if (r < 0) {
log_unit_warning_errno(UNIT(s)->id, r, "Failed to watch listening fds: %m");
goto fail;
}
+
+ (void) sd_event_source_set_description(p->event_source, "socket-port-io");
}
return 0;