-# $OpenBSD: Makefile.inc,v 1.8 2020/12/17 00:51:11 bluhm Exp $
+# $OpenBSD: Makefile.inc,v 1.9 2023/10/18 19:14:32 anton Exp $
.PATH: ${.CURDIR}/..
LD_LIBRARY_PATH=${LD_LIBRARY_PATH} \
./client >client-self.out \
`sed -n 's/listen sock: //p' server-self.out`
+ # wait for server to terminate
+ -sed -n 's/listen sock: //p' server-self.out | xargs nc 2>/dev/null
# check that the client run successfully to the end
grep -q '^success$$' client-self.out
# client must have read server greeting