[wiki] [sites] forgot to close file || Thuban

From: <git_AT_suckless.org>
Date: Wed, 26 Jun 2013 14:43:09 +0200

commit 0a82280cd666a63888038295c72aedbc50559c02
Author: Thuban <thuban_AT_singularity.fr>
Date: Wed Jun 26 14:43:00 2013 +0200

    forgot to close file

diff --git a/dwm.suckless.org/dwmstatus/fifo.c b/dwm.suckless.org/dwmstatus/fifo.c
index da8baa1..e9b8f9b 100644
--- a/dwm.suckless.org/dwmstatus/fifo.c
+++ b/dwm.suckless.org/dwmstatus/fifo.c
_AT_@ -27,6 +27,7 @@ snotif()
     len = read(f, buf, sizeof(buf));
     if (len == -1){
         perror("fifo read");
+ close(f);
         return smprintf("%s","");
     }
     close(f);
Received on Wed Jun 26 2013 - 14:43:09 CEST

This archive was generated by hypermail 2.3.0 : Wed Jun 26 2013 - 14:48:14 CEST