Project homepage Mailing List  Warmcat.com  API Docs  Github Mirror 
    npro  
 Modern all-safe Rust Network Protocol library supporting h1, h2, h3, ws, wt sans-IO and with socket IO + tls
git clone https://npro.rs/repo/npro
Author[]Andy Green <andy@warmcat.com> 2025-06-04 06:18 UTC
Committer[]Andy Green <andy@warmcat.com> 2025-06-04 06:18 UTC
Treef2299abd3b93d7490b9d78401b28f8e3d1992ee5   Raw Patch
 
netbsd: add shutdown handling
netbsd: add shutdown handling
diff --git a/src/builder/b-sai.c b/src/builder/b-sai.c index c29a08a..267d21a 100644 --- a/src/builder/b-sai.c +++ b/src/builder/b-sai.c @@ -724,7 +724,11 @@ int main(int argc, const char **argv) if (!p) switch(d) { case 0: +#if defined(__NetBSD__) + execl("/sbin/shutdown", "/sbin/shutdown", "-h", "now", NULL); +#else execl("/usr/sbin/shutdown", "/usr/sbin/shutdown", "--halt", "now", NULL); +#endif break; case 1: execl("/usr/bin/systemctl", "/usr/bin/systemctl", "suspend", NULL);
Page fetched 0s ago, creation time: 2ms (vhost etag hits: 0%, cache hits: 0%)