[6.0] 3f74c4c6f Just hide this whole thing from Sun CC for now

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Thu Aug 16 08:52:43 UTC 2018


commit 3f74c4c6faa13e7d26b7b04b21b32cb663472a3c
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date:   Sat Apr 14 11:48:18 2018 +0100

    Just hide this whole thing from Sun CC for now

diff --git a/bin/varnishtest/vtc_server.c b/bin/varnishtest/vtc_server.c
index 04199de11..294305840 100644
--- a/bin/varnishtest/vtc_server.c
+++ b/bin/varnishtest/vtc_server.c
@@ -321,7 +321,9 @@ server_dispatch_thread(void *priv)
 	assert(s->sock >= 0);
 
 	vl = vtc_logopen(s->name);
+#if !defined(__SUNPRO_C)
 	pthread_cleanup_push(vtc_logclose, vl);
+#endif
 
 	vtc_log(vl, 2, "Dispatch started on %s", s->listen);
 
@@ -340,7 +342,9 @@ server_dispatch_thread(void *priv)
 		s2->run = 1;
 		AZ(pthread_create(&s2->tp, NULL, server_dispatch_wrk, s2));
 	}
-	NEEDLESS(pthread_cleanup_pop(1));
+#if !defined(__SUNPRO_C)
+	pthread_cleanup_pop(1);
+#endif
 	NEEDLESS(return(NULL));
 }
 


More information about the varnish-commit mailing list