Code

frontend/sock_test: Try to connect to the server socket.
authorSebastian Harl <sh@tokkee.org>
Wed, 18 Dec 2013 20:34:43 +0000 (21:34 +0100)
committerSebastian Harl <sh@tokkee.org>
Wed, 18 Dec 2013 20:34:43 +0000 (21:34 +0100)
commit6204a78be4e8853c5deb17390b54a6b1f4c5f6ca
treeb79c36b603b81cc62daa9eb71c35176bb6de5a2a
parent332916804abc0addbb14ae523c8aab4622b8a3ba
frontend/sock_test: Try to connect to the server socket.

This verifies that the socket is actually usable.

Also, it fixes a race condition in the test. The UNIX socket file is already
created when adding the listener. Thus, the previous synchronization between
the main thread and the socket handler thread did not work in most cases.
t/frontend/sock_test.c