[master] 6ad2dd4 Ignore close() return value

Federico G. Schwindt fgsch at lodoss.net
Thu Sep 10 18:49:15 CEST 2015


commit 6ad2dd4d6661c9b67efe47c0e5875b7cf2eba6f8
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date:   Thu Sep 10 17:48:08 2015 +0100

    Ignore close() return value
    
    We might have exit'd earlier.

diff --git a/bin/varnishtest/vtc_process.c b/bin/varnishtest/vtc_process.c
index 88962b5..c0a15c2 100644
--- a/bin/varnishtest/vtc_process.c
+++ b/bin/varnishtest/vtc_process.c
@@ -299,7 +299,7 @@ process_close(struct process *p)
 	if (!p->running || !p->pid)
 		vtc_log(p->vl, 0, "Cannot close on a non-running process");
 
-	AZ(close(p->fds[1]));
+	(void)close(p->fds[1]);
 	p->fds[1] = -1;
 }
 



More information about the varnish-commit mailing list