Skip to content

Commit

Permalink
rlimit.rs: fix return type of rlimit_nofile on 32-bit systems
Browse files Browse the repository at this point in the history
  • Loading branch information
landfillbaby authored and pkolaczk committed Jun 5, 2023
1 parent aa02227 commit 625926d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rlimit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use std::sync::Arc;
#[cfg(unix)]
// Get the maximum number of open file descriptors for this process, and if
// the hard limit is larger than the soft limit increase it.
fn rlimit_nofile() -> u64 {
fn rlimit_nofile() -> libc::rlim_t {
let mut file_limit = libc::rlimit {
rlim_cur: 0,
rlim_max: 0,
Expand Down

0 comments on commit 625926d

Please sign in to comment.