diff options
Diffstat (limited to 'src/ipcpd/ipcp.c')
-rw-r--r-- | src/ipcpd/ipcp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ipcpd/ipcp.c b/src/ipcpd/ipcp.c index 59fbdba6..ab2f88f8 100644 --- a/src/ipcpd/ipcp.c +++ b/src/ipcpd/ipcp.c @@ -53,6 +53,7 @@ #include <signal.h> #include <string.h> #include <sys/socket.h> +#include <sys/prctl.h> #include <stdlib.h> #if defined(__linux__) && !defined(DISABLE_CORE_LOCK) #include <unistd.h> @@ -710,6 +711,9 @@ int ipcp_init(int argc, ipcpi.state = IPCP_NULL; ipcpi.type = type; +#if defined (__linux__) + prctl(PR_SET_TIMERSLACK, IPCP_LINUX_SLACK_NS, 0, 0, 0); +#endif ipcpi.sock_path = ipcp_sock_path(getpid()); if (ipcpi.sock_path == NULL) goto fail_sock_path; |