mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Handle SIGPIPE when spinning down
This commit is contained in:
parent
6c1421f5a0
commit
ce2ad1e9c1
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue