ref: 7531dbe191cee7e6eb4a85b50da142cd61e85ff3
parent: fa98fbb13c368040db238eb218ed844d53642a12
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Mon May 24 04:23:33 EDT 2021
do not send empty empty commands (udp)
--- a/plan9.c
+++ b/plan9.c
@@ -930,7 +930,8 @@
if (t == Oevent_type_udp_string && udp >= 0) {
Oevent_udp_string *u = &e->udp_string;
- write(udp, u->chars, u->count); /* FIXME show errors */
+ if(u->count > 0)
+ write(udp, u->chars, u->count); /* FIXME show errors */
continue;
} else if (t == Oevent_type_cmd_string) {
Oevent_cmd_string *c = &e->cmd_string;