more helpful panic msg on failing to increase soft/hard FD limits
this can be caused by security policies, hardening, etc Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
1308574db0
commit
bb2f213ac3
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ async fn main() {
|
||||||
// * https://www.freedesktop.org/software/systemd/man/systemd.exec.html#id-1.12.2.1.17.6
|
// * https://www.freedesktop.org/software/systemd/man/systemd.exec.html#id-1.12.2.1.17.6
|
||||||
// * https://github.com/systemd/systemd/commit/0abf94923b4a95a7d89bc526efc84e7ca2b71741
|
// * https://github.com/systemd/systemd/commit/0abf94923b4a95a7d89bc526efc84e7ca2b71741
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
maximize_fd_limit().expect("should be able to increase the soft limit to the hard limit");
|
maximize_fd_limit().expect("Unable to increase maximum soft and hard file descriptor limit");
|
||||||
|
|
||||||
config.warn_deprecated();
|
config.warn_deprecated();
|
||||||
if config.is_dual_listening(raw_config) {
|
if config.is_dual_listening(raw_config) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue