X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=unix%2Fuxproxy.c;fp=unix%2Fuxproxy.c;h=3df4cebe4cf5f8b74124d143255949c17fc8455e;hb=86b604dd65679d983c06012b377e41c927da3cd6;hp=f92c459be284ee341a35fda4c3e61b14690b75ec;hpb=9ce982622f9ab07b85cbb06d06f53b71fb9558a9;p=PuTTY.git diff --git a/unix/uxproxy.c b/unix/uxproxy.c index f92c459b..3df4cebe 100644 --- a/unix/uxproxy.c +++ b/unix/uxproxy.c @@ -149,10 +149,8 @@ static int localproxy_try_send(Local_Proxy_Socket ps) bufchain_prefix(&ps->pending_output_data, &data, &len); ret = write(ps->to_cmd, data, len); if (ret < 0 && errno != EWOULDBLOCK) { - /* We're inside the Unix frontend here, so we know - * that the frontend handle is unnecessary. */ - logevent(NULL, strerror(errno)); - fatalbox("%s", strerror(errno)); + plug_closing(ps->plug, strerror(errno), errno, 0); + return 0; } else if (ret <= 0) { break; } else {