From 1c35a89108e4c8a0913a408f0885d53c4899351a Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Sun, 25 May 2008 22:32:48 +0000 Subject: Restore OOM killer adjustment for child processes (thanks, Vaclav Ovsik; closes: #480020). --- openbsd-compat/port-linux.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'openbsd-compat/port-linux.h') diff --git a/openbsd-compat/port-linux.h b/openbsd-compat/port-linux.h index 05e520e1c..cb8a253c4 100644 --- a/openbsd-compat/port-linux.h +++ b/openbsd-compat/port-linux.h @@ -24,4 +24,10 @@ void ssh_selinux_setup_pty(char *, const char *); void ssh_selinux_setup_exec_context(char *); #endif +#ifdef OOM_ADJUST +int oom_adj_open(void); +int oom_adj_get(char *buf, size_t maxlen); +int oom_adj_set(const char *buf); +#endif + #endif /* ! _PORT_LINUX_H */ -- cgit v1.2.3