]> git.pond.sub.org Git - empserver/commit
client: Lift assignment to @input_fd to recv_output()
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 10 Apr 2017 20:22:21 +0000 (22:22 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 6 Aug 2017 09:22:29 +0000 (11:22 +0200)
commit8301e0f144c7435d12f2d583ffe78d6b5e287242
tree46fa3406950a3496ad12bc0d0148c07d553a213a
parent37e68e5796e156deec7a47427ded2cb7a9ee3270
client: Lift assignment to @input_fd to recv_output()

On successful execute, servercmd() sets @input_fd to the batch file
descriptor.  Return the file descriptor instead, and let its caller
recv_output() set @input_fd.  This permits giving @input_fd static
linkage.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/client/misc.h
src/client/play.c
src/client/servcmd.c