mirror of
https://git.savannah.gnu.org/git/screen.git
synced 2026-02-11 09:52:00 +02:00
Close file descriptor after query command
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
This commit is contained in:
@@ -513,6 +513,7 @@ void SendCmdMessage(char *sty, char *match, char **av, int query)
|
||||
|
||||
/* Read the result and spit it out to stdout */
|
||||
ReceiveRaw(r);
|
||||
close(r);
|
||||
unlink(SocketPath);
|
||||
if (QueryResult == 2) /* An error happened */
|
||||
exit(1);
|
||||
|
||||
Reference in New Issue
Block a user