fix: correct listenfd assertion
Forgot I wanted the expression for checking identical file descriptors to be false.
This commit is contained in:
parent
3af3e3ab78
commit
cf14278b92
1 changed files with 1 additions and 1 deletions
|
|
@ -218,7 +218,7 @@ fn parse_args() -> RealData {
|
||||||
// - parse_args() must only be called once to avoid double closing.
|
// - parse_args() must only be called once to avoid double closing.
|
||||||
// - no fd can be provided multiple times to avoid double closing.
|
// - no fd can be provided multiple times to avoid double closing.
|
||||||
assert!(
|
assert!(
|
||||||
data.listenfds.iter().any(|l| l.as_raw_fd() == fd),
|
!data.listenfds.iter().any(|l| l.as_raw_fd() == fd),
|
||||||
"Multiple -listenfd with the same fd is not allowed"
|
"Multiple -listenfd with the same fd is not allowed"
|
||||||
);
|
);
|
||||||
let fd = unsafe { OwnedFd::from_raw_fd(fd) };
|
let fd = unsafe { OwnedFd::from_raw_fd(fd) };
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue