Closed hug-dev closed 3 years ago
See also https://github.com/lnicola/sd-notify/pull/2#issuecomment-781479996. Maybe returning impl Iterator<Item=RawFd>
would be a better API?
Topical 😃!
Yes I think returning an iterator (or a Vec<RawFd>
?) could be nice so then you don't have to do the logic yourself? As in you don't need SD_LISTEN_FDS_START
anymore but directly use the RawFd
s returned
Hello 👋
Not a big problem at all, but when upgrading our version of this crate the following code threw a compilation error (and that's fine cause it was a breaking change upgrade 😄):
If it's common practice (but I am not entirely sure of that) to use
SD_LISTEN_FDS_START
with theFromRawFd
trait, maybe it would make sense to use the typeRawFd
from stdlib.Just a question/suggestion!