hmi/console: fix fd leak

This commit is contained in:
Giacomo Tesio 2017-10-23 23:44:24 +02:00
parent a86e2b506a
commit 1639097200

View File

@ -217,4 +217,5 @@ post(char *srv, int fd)
sprint(buf, "%d", fd);
if(write(f, buf, strlen(buf)) != strlen(buf))
sysfatal("write");
close(f);
}