History

do not send empty empty commands (udp)

Sigrid Solveig Haflínudóttir committed 5 years ago

Commit 7531dbe1 parent fa98fbb1 file · +2 −1Browse files

Unified · Split

plan9.c+2−1
@@ -930,7 +930,8 @@ process(Oevent_list *events) · 929 unmodified lines
930930
931931 if (t == Oevent_type_udp_string && udp >= 0) {
932932 Oevent_udp_string *u = &e->udp_string;
933− write(udp, u->chars, u->count); /* FIXME show errors */
933+ if(u->count > 0)
934+ write(udp, u->chars, u->count); /* FIXME show errors */
934935 continue;
935936 } else if (t == Oevent_type_cmd_string) {
936937 Oevent_cmd_string *c = &e->cmd_string;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t