aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/os-Linux/aio.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/os-Linux/aio.c')
-rw-r--r--arch/um/os-Linux/aio.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/um/os-Linux/aio.c b/arch/um/os-Linux/aio.c
index 3a6bc2af0961..014eb35fd13b 100644
--- a/arch/um/os-Linux/aio.c
+++ b/arch/um/os-Linux/aio.c
@@ -104,8 +104,7 @@ static int aio_thread(void *arg)
104 struct io_event event; 104 struct io_event event;
105 int err, n, reply_fd; 105 int err, n, reply_fd;
106 106
107 signal(SIGWINCH, SIG_IGN); 107 os_fix_helper_signals();
108
109 while (1) { 108 while (1) {
110 n = io_getevents(ctx, 1, 1, &event, NULL); 109 n = io_getevents(ctx, 1, 1, &event, NULL);
111 if (n < 0) { 110 if (n < 0) {
@@ -173,7 +172,7 @@ static int not_aio_thread(void *arg)
173 struct aio_thread_reply reply; 172 struct aio_thread_reply reply;
174 int err; 173 int err;
175 174
176 signal(SIGWINCH, SIG_IGN); 175 os_fix_helper_signals();
177 while (1) { 176 while (1) {
178 err = read(aio_req_fd_r, &req, sizeof(req)); 177 err = read(aio_req_fd_r, &req, sizeof(req));
179 if (err != sizeof(req)) { 178 if (err != sizeof(req)) {