3 Commits

Author SHA1 Message Date
Auke Kok fdaa8ed34c v16 2019-01-23 15:19:50 -08:00
Auke Kok ea34b5b78c Return memory to the OS on prune. 2019-01-23 15:17:14 -08:00
Auke Kok 33191b04bf Run as nice by default. 2019-01-23 15:14:46 -08:00
3 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.64])
AC_INIT([tallow], [15], [auke-jan.h.kok@intel.com])
AC_INIT([tallow], [16], [auke-jan.h.kok@intel.com])
AM_INIT_AUTOMAKE([foreign])
AC_CONFIG_FILES([Makefile])
+4
View File
@@ -16,6 +16,7 @@
#include <stdbool.h>
#include <stdio.h>
#include <sys/time.h>
#include <malloc.h>
#include <pcre.h>
@@ -168,4 +169,7 @@ void prune(int expires)
p = s;
s = s->next;
}
/* return some memory */
malloc_trim(0);
}
+1
View File
@@ -6,6 +6,7 @@ Description=Tallow Service
ExecStart=@prefix@/sbin/tallow
Restart=always
RestartSec=3
Nice=10
[Install]
WantedBy=network.target