mitsuhiko / systemfd

Development helper utility for helping with auto reloading for projects supporting systemd socket activation
Apache License 2.0
468 stars 17 forks source link

Unable to run without sudo on Mac OS #13

Closed lynndylanhurley closed 1 year ago

lynndylanhurley commented 3 years ago

Here is the result when running without sudo:

❯ systemfd --no-pid -s http::8080 -- cargo watch -x run
~> socket http://127.0.0.1:8080/
[Running 'cargo run']
    Finished dev [unoptimized + debuginfo] target(s) in 0.11s
     Running `target/debug/graphite`
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Custom { kind: InvalidInput, error: "fd 3 is not a socket" }', src/main.rs:29:61
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Panic in Arbiter thread.
[Finished running. Exit status: 101]
mitsuhiko commented 2 years ago

I cannot reproduce this.