Add a proper signal handling

The most common signals are now intercepted with SA_RESTART
to allow a clean interruption.
This commit is contained in:
Andrea Mazzoleni 2015-10-26 19:32:41 +01:00
parent e23397f8de
commit 104c47d106
3 changed files with 41 additions and 18 deletions

2
TODO
View file

@ -43,8 +43,6 @@ The same for directories, when recreating the directory tree.
* If a directory exists with the same name of a parity/content file be more explicative
on the error message. See: https://sourceforge.net/projects/snapraid/forums/forum/1677233/topic/4861034
* Support interrupted operations with EINTR. For remote filesystems it could be relevant.
* Allow to specify more than one disk directories to cover the case of multi partitions.
Different partitions have duplicate inode. The only way to support this is to
add also a kind of device_id, increasing the memory required.