X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/23e649c97fc92d822cdaba2e9febc3099de77673..ecb2572233d5f3d3523a46979077ac0c20044d58:/unix/uxplink.c diff --git a/unix/uxplink.c b/unix/uxplink.c index 6d9a9b75..cbfcc713 100644 --- a/unix/uxplink.c +++ b/unix/uxplink.c @@ -513,7 +513,8 @@ int signalpipe[2]; void sigwinch(int signum) { - write(signalpipe[1], "x", 1); + if (write(signalpipe[1], "x", 1) <= 0) + /* not much we can do about it */; } /* @@ -1030,7 +1031,9 @@ int main(int argc, char **argv) if (FD_ISSET(signalpipe[0], &rset)) { char c[1]; struct winsize size; - read(signalpipe[0], c, 1); /* ignore its value; it'll be `x' */ + if (read(signalpipe[0], c, 1) <= 0) + /* ignore error */; + /* ignore its value; it'll be `x' */ if (ioctl(0, TIOCGWINSZ, (void *)&size) >= 0) back->size(backhandle, size.ws_col, size.ws_row); }