1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-27 01:55:22 +03:00

service: remove unneccesary Socket.got_socket_fd

This commit is contained in:
Shawn Landden 2013-11-20 00:35:04 -08:00 committed by Zbigniew Jędrzejewski-Szmek
parent e4afbb3eac
commit 99f37ad86e
2 changed files with 1 additions and 4 deletions

View File

@ -2827,7 +2827,7 @@ _pure_ static bool service_check_snapshot(Unit *u) {
assert(s);
return !s->got_socket_fd;
return (s->socket_fd < 0);
}
static int service_retry_pid_file(Service *s) {
@ -3709,7 +3709,6 @@ int service_set_socket_fd(Service *s, int fd, Socket *sock) {
return -EAGAIN;
s->socket_fd = fd;
s->got_socket_fd = true;
unit_ref_set(&s->accept_socket, UNIT(sock));

View File

@ -26,7 +26,6 @@ typedef struct Service Service;
#include "unit.h"
#include "path.h"
#include "ratelimit.h"
#include "service.h"
#include "kill.h"
#include "exit-status.h"
@ -173,7 +172,6 @@ struct Service {
bool main_pid_alien:1;
bool bus_name_good:1;
bool forbid_restart:1;
bool got_socket_fd:1;
bool start_timeout_defined:1;
#ifdef HAVE_SYSV_COMPAT
bool is_sysv:1;