[master] 77e6d3a Drop the poll on fd_stdin linux doesn't handle collateral close.

Poul-Henning Kamp phk at FreeBSD.org
Wed Jan 10 14:55:08 UTC 2018


commit 77e6d3ae8e7f8b7e9a48872efa0d52b216ecc4fe
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Wed Jan 10 14:54:07 2018 +0000

    Drop the poll on fd_stdin linux doesn't handle collateral close.

diff --git a/bin/varnishtest/vtc_process.c b/bin/varnishtest/vtc_process.c
index 0388f99..42bfdf6 100644
--- a/bin/varnishtest/vtc_process.c
+++ b/bin/varnishtest/vtc_process.c
@@ -174,15 +174,6 @@ process_vlu_func(void *priv, const char *l)
 }
 
 static int v_matchproto_(vev_cb_f)
-process_stdin(const struct vev *ev, int what)
-{
-	struct process *p;
-	CAST_OBJ_NOTNULL(p, ev->priv, PROCESS_MAGIC);
-	vtc_log(p->vl, 4, "stdin event 0x%x", what);
-	return (1);
-}
-
-static int v_matchproto_(vev_cb_f)
 process_stdout(const struct vev *ev, int what)
 {
 	struct process *p;
@@ -253,14 +244,6 @@ process_thread(void *priv)
 
 	ev = VEV_Alloc();
 	AN(ev);
-	ev->fd = p->fd_stdin;
-	ev->fd_flags = VEV__HUP | VEV__ERR;
-	ev->priv = p;
-	ev->callback = process_stdin;
-	AZ(VEV_Start(evb, ev));
-
-	ev = VEV_Alloc();
-	AN(ev);
 	ev->fd = p->fd_stdout;
 	ev->fd_flags = VEV__RD | VEV__HUP | VEV__ERR;
 	ev->callback = process_stdout;


More information about the varnish-commit mailing list