load-tester: use a stream service to dispatch control connections

This commit is contained in:
Martin Willi
2013-07-18 16:00:29 +02:00
parent e11c02c8f1
commit 73da4ed849
2 changed files with 27 additions and 93 deletions
@@ -35,7 +35,7 @@ static FILE* make_connection()
addr.sun_family = AF_UNIX;
strcpy(addr.sun_path, LOAD_TESTER_SOCKET);
fd = socket(AF_UNIX, SOCK_SEQPACKET, 0);
fd = socket(AF_UNIX, SOCK_STREAM, 0);
if (fd < 0)
{
fprintf(stderr, "opening socket failed: %s\n", strerror(errno));