mirror of
https://github.com/schoebel/mars
synced 2024-12-23 23:23:09 +00:00
infra: fix signal handling
This commit is contained in:
parent
088b103abf
commit
fd72fef4c9
@ -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;
|
||||
|
@ -686,6 +686,7 @@ typedef enum {
|
||||
|
||||
#define brick_thread_should_stop() \
|
||||
({ \
|
||||
flush_signals(current); \
|
||||
brick_yield(); \
|
||||
kthread_should_stop(); \
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user