summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sock.c b/sock.c
index 84723d0..10199a4 100644
--- a/sock.c
+++ b/sock.c
@@ -169,7 +169,8 @@ static int get_system_socket_mem(int which)
static void set_system_socket_mem(int which, int val)
{
if (sysctl_set_int(sock_mem[which], val))
- panic("Cannot set system socket memory!\n");
+ printf("Cannot set system socket memory in %s%s: %s\n",
+ SYSCTL_PROC_PATH, sock_mem[which], strerror(errno));
}
void set_system_socket_memory(int *vals, size_t len)