diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-03-15 15:35:49 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-03-15 15:46:41 +0100 |
commit | 7acf581a58ba7d4efa65b86f5a94f00a993b16a8 (patch) | |
tree | 788f3995a8b1f495a49d1fb40f6e5328c541fb6a /src/activate | |
parent | 054d871d41039fcfc1a4a661c979941b9660c9e6 (diff) | |
download | systemd-7acf581a58ba7d4efa65b86f5a94f00a993b16a8.tar.gz systemd-7acf581a58ba7d4efa65b86f5a94f00a993b16a8.tar.bz2 systemd-7acf581a58ba7d4efa65b86f5a94f00a993b16a8.zip |
Handle or voidify all calls to close_all_fds()
In activate, it is important that we close the fds. In other cases, meh.
Diffstat (limited to 'src/activate')
-rw-r--r-- | src/activate/activate.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/activate/activate.c b/src/activate/activate.c index 7eae9e22c2..35ab08f22d 100644 --- a/src/activate/activate.c +++ b/src/activate/activate.c @@ -74,7 +74,9 @@ static int open_sockets(int *epoll_fd, bool accept) { except[fd] = fd; log_close(); - close_all_fds(except, 3 + n); + r = close_all_fds(except, 3 + n); + if (r < 0) + return log_error_errno(r, "Failed to close all file descriptors: %m"); } /** Note: we leak some fd's on error here. I doesn't matter |