Commit 1e1fd56
Mikulas Patocka
dm suspend: return -ERESTARTSYS instead of -EINTR
This commit changes device mapper, so that it returns -ERESTARTSYS
instead of -EINTR when it is interrupted by a signal (so that the ioctl
can be restarted).
The manpage signal(7) says that the ioctl function should be restarted if
the signal was handled with SA_RESTART.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: stable@vger.kernel.org1 parent 7c626ce commit 1e1fd56
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2737 | 2737 | | |
2738 | 2738 | | |
2739 | 2739 | | |
2740 | | - | |
| 2740 | + | |
2741 | 2741 | | |
2742 | 2742 | | |
2743 | 2743 | | |
| |||
2762 | 2762 | | |
2763 | 2763 | | |
2764 | 2764 | | |
2765 | | - | |
| 2765 | + | |
2766 | 2766 | | |
2767 | 2767 | | |
2768 | 2768 | | |
| |||
0 commit comments