1
1
Jon Simons 8d7563a9c3 pkd_daemon.c: split final close loop; wait for client to close
Sometimes, but not always, the pkd tests will fail because they
close the socket at hand a bit too early for the client.  The
client in turn may exit non-zero when that happens.

Split up the final close loop so that pkd waits to receive a
channel close from the client, and then socket close, before
finally returning.

With this change I observe that tests are now passing in
environments that would previously tickle the above race
and fail.

Signed-off-by: Jon Simons <jon@jonsimons.org>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2017-09-11 16:30:54 +02:00
..
2014-10-12 15:01:02 +02:00
2014-10-12 15:01:02 +02:00
2014-10-12 15:01:02 +02:00
2014-10-15 10:26:24 +02:00
2014-10-12 15:01:02 +02:00