1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-08-06 19:44:01 +08:00

7 Commits

Author SHA1 Message Date
4924b80e10 chore: fix linter nits
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-14 09:38:26 -07:00
bff8326b97 ulimit: fix setting ulimit
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-13 14:52:24 -07:00
c318e3472e fix ulimit tests
Not sure why CI wasn't failing.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-10 23:20:04 -07:00
8cca57244c supressed fd util printing to output
Moved the fmt.Printf call from ManageFdLimit() to the calling code. ManageFdLimit() is called by tests and its annoying to have it output text

License: MIT
Signed-off-by: Rob Deutsch <rdeutschob@gmail.com>
2018-09-24 20:35:06 +10:00
ffcdb4eec9 fix type error in ulimit_test.go on FreeBSD
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-02-05 21:07:20 +01:00
d399cdfec9 disable some tests on windows
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-02-04 01:10:43 +01:00
f16ada6159 This patch contains more safe checking in syscall rlimit and unit tests
The soft limit is the value that the kernel enforces for the corresponding resource
The hard limit acts as a ceiling for the soft limit
an unprivileged process may only set its soft limit to a value
in the range from 0 up to the hard limit.
So in order to make the change in fds count without any error we should
inform the user to make the process have CAP_SYS_RESOURCE capability
in order to set the hard limit.

License: MIT
Signed-off-by: hoenirvili <hoenirvili@gmail.com>
2017-12-04 17:27:00 -05:00