infra: fix signal handling

This commit is contained in:
Thomas Schoebel-Theuer 2017-05-22 11:23:39 +02:00
parent 088b103abf
commit fd72fef4c9
2 changed files with 2 additions and 1 deletions

View File

@ -36,7 +36,7 @@
int _brick_msleep(int msecs, bool shorten)
{
unsigned long timeout;
flush_signals(current); \
flush_signals(current);
if (msecs <= 0) {
cond_resched();
return 0;

View File

@ -686,6 +686,7 @@ typedef enum {
#define brick_thread_should_stop() \
({ \
flush_signals(current); \
brick_yield(); \
kthread_should_stop(); \
})