From 4cdeb1778fbead9fa9294f0d9b50f1e06a06fc42 Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Sat, 12 Nov 2022 12:23:13 +0100 Subject: [PATCH] Disable ulimit checking on non-Linux unices. The code turned out not to port to FreeBSD. Disable the check, and assume that FreeBSD admins read the docs. Thanks to Amatis-51. --- limit/limit.go | 2 +- limit/limit_unix.go | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/limit/limit.go b/limit/limit.go index 11fb867..5f87f47 100644 --- a/limit/limit.go +++ b/limit/limit.go @@ -1,4 +1,4 @@ -// +build windows plan9 +// +build !linux package limit diff --git a/limit/limit_unix.go b/limit/limit_unix.go index 6365d54..25f03fc 100644 --- a/limit/limit_unix.go +++ b/limit/limit_unix.go @@ -1,5 +1,4 @@ -// +build !windows -// +build !plan9 +// +build linux package limit