Issue: #430 Reported by: @Twilek-detags/1.3.0
After=nss-lookup.target | After=nss-lookup.target | ||||
[Service] | [Service] | ||||
Type=forking | |||||
NonBlocking=true | |||||
ExecStart=/usr/bin/rspamd -c /etc/rspamd/rspamd.conf -f | ExecStart=/usr/bin/rspamd -c /etc/rspamd/rspamd.conf -f | ||||
User=_rspamd | User=_rspamd | ||||
RuntimeDirectory=rspamd | RuntimeDirectory=rspamd |
return NULL; | return NULL; | ||||
} | } | ||||
flags = fcntl (sock, F_GETFD); | flags = fcntl (sock, F_GETFD); | ||||
if (flags != -1) { | if (flags != -1) { | ||||
(void)fcntl (sock, F_SETFD, flags | FD_CLOEXEC); | (void)fcntl (sock, F_SETFD, flags | FD_CLOEXEC); | ||||
} | } | ||||
rspamd_socket_nonblocking (sock); | |||||
result = g_list_prepend (result, GINT_TO_POINTER (sock)); | result = g_list_prepend (result, GINT_TO_POINTER (sock)); | ||||
} | } | ||||
else if (num_passed <= number) { | else if (num_passed <= number) { |