diff options
author | Sven Eden <yamakuzure@gmx.net> | 2017-04-06 14:56:03 +0200 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-04-26 12:59:13 +0200 |
commit | da4b83e77bc603745cf4a365d7f013301ef7fa89 (patch) | |
tree | 293d9508eeb1f841c71b0b0517287fd398aded82 /src/libelogind/sd-daemon/sd-daemon.c | |
parent | eaca07ccfdf5d7dabc50afc7e539c2413dd69d3e (diff) |
Prep v228: Add remaining updates from upstream (3/3)
Apply remaining fixes and the performed move of utility functions
into their own foo-util.[hc] files on the rest of elogind.
Diffstat (limited to 'src/libelogind/sd-daemon/sd-daemon.c')
-rw-r--r-- | src/libelogind/sd-daemon/sd-daemon.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/libelogind/sd-daemon/sd-daemon.c b/src/libelogind/sd-daemon/sd-daemon.c index e47da68a6..b5454f1ef 100644 --- a/src/libelogind/sd-daemon/sd-daemon.c +++ b/src/libelogind/sd-daemon/sd-daemon.c @@ -21,7 +21,7 @@ #include <errno.h> #include <limits.h> -//#include <mqueue.h> +#include <mqueue.h> #include <netinet/in.h> #include <stdarg.h> #include <stddef.h> @@ -33,12 +33,18 @@ #include <sys/un.h> #include <unistd.h> +#include "sd-daemon.h" + +#include "alloc-util.h" +#include "fd-util.h" +//#include "fs-util.h" +#include "parse-util.h" #include "path-util.h" #include "socket-util.h" -//#include "strv.h" +#include "strv.h" #include "util.h" -#include "sd-daemon.h" +#define SNDBUF_SIZE (8*1024*1024) /// UNNEEDED by elogind #if 0 @@ -452,6 +458,8 @@ _public_ int sd_pid_notify_with_fds(pid_t pid, int unset_environment, const char goto finish; } + fd_inc_sndbuf(fd, SNDBUF_SIZE); + iovec.iov_len = strlen(state); strncpy(sockaddr.un.sun_path, e, sizeof(sockaddr.un.sun_path)); |