On Sat, Mar 28, 2020 at 8:07 AM W. Michael Petullo wrote:
>
> I am playing with Go and setrlimit(). Here is some code from a test that
> executes after setting RLIMIT_NPROC to 0:
>
> err = exec.Command("true").Run()
> if e, ok := err.(*os.PathError); !ok || e.Err.(unix.Errno) != unix.EAGAIN {
> t
I am playing with Go and setrlimit(). Here is some code from a test
that executes after setting RLIMIT_NPROC to 0:
err = exec.Command("true").Run()
if e, ok := err.(*os.PathError); !ok || e.Err.(unix.Errno) !=
unix.EAGAIN {
t.Error(err.Error())
}
/* Test succ