Fix a race by always modifying the 'counter' variable while holding the
authormpi <mpi@openbsd.org>
Tue, 30 May 2017 06:38:10 +0000 (06:38 +0000)
committermpi <mpi@openbsd.org>
Tue, 30 May 2017 06:38:10 +0000 (06:38 +0000)
commit13739c113ef54cbb80484ba689bb28841a995e92
treed449057eb275fbe7462a4f8e18562e48c3069029
parent489ad1fb4474e51189151f3bc59ca2951cb761c4
Fix a race by always modifying the 'counter' variable while holding the
mutex.

ok tedu@
regress/lib/libpthread/socket/1/socket1.c