Handle SIGPIPE when spinning down
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-win (push) Waiting to run
CodeQL / Analyze (push) Waiting to run

This commit is contained in:
Andrea Mazzoleni 2025-10-18 11:45:31 +02:00
parent 6c1421f5a0
commit ce2ad1e9c1

View file

@ -397,6 +397,9 @@ int main(int argc, char* argv[])
spindown_argv[1] = "down";
spindown_argv[2] = 0;
/* ignore sigpipe to allow spindown even if the terminal is closed */
signal(SIGPIPE, SIG_IGN);
snapraid_main(2, spindown_argv);
}
}