shithub: patch

Download patch

ref: af56c09de7d340d996df58556dc0274d9c54a7f5
parent: b263a6de7c1759137085ba1052e51f3b5157d7de
author: qwx <qwx@sciops.net>
date: Fri Sep 9 21:03:53 EDT 2022

remove merged tinc patch

--- a/tinc-pingpong-race
+++ /dev/null
@@ -1,15 +1,0 @@
-diff 5a3aea0ca8fc8ec5529a5328e6f7879ad6d976da uncommitted
---- a//sys/src/cmd/ip/tinc.c
-+++ b//sys/src/cmd/ip/tinc.c
-@@ -1301,7 +1301,10 @@
- 	while((n = conrecv(c, f, nelem(f))) > 0){
- 		switch(atoi(f[0])){
- 		case PING:
--			if(consend(c, "%d %x", PONG, rand()) < 0)
-+			netlock(c);
-+			n = consend(c, "%d %x", PONG, rand());
-+			netunlock(c);
-+			if(n < 0)
- 				return;
- 			continue;
- 		case PONG: