cloudflare / boringtun

Userspace WireGuard® Implementation in Rust
BSD 3-Clause "New" or "Revised" License
5.92k stars 396 forks source link

Upgrade to daemonize 0.5.0 to get rid of boxfnonce #403

Open dverbeir opened 2 months ago

dverbeir commented 2 months ago

boxfnonce crate is obsolete since Rust 1.35 and cargo audit complains about it. daemonize 0.5.0 doesn't use it any longer but is incompatible with earlier version in that the exit_action() modifier is no longer supported.

Despite the lack of any hint as to how to achieve the same thing with the newer version, it seems it can be done using daemonize.execute() instead of damonize.start(), since it will allow the parent to continue execution past the fork point.

kennytm commented 1 month ago

this is a duplicate of #361.