test: unlink UNIX socket before starting pipe echo server

This commit is contained in:
Ben Noordhuis 2012-04-13 14:22:39 +02:00
parent 976423c643
commit 57ee146985

View File

@ -298,6 +298,14 @@ static int udp4_echo_start(int port) {
static int pipe_echo_start(char* pipeName) {
int r;
#ifndef _WIN32
{
uv_fs_t req;
uv_fs_unlink(uv_default_loop(), &req, pipeName, NULL);
uv_fs_req_cleanup(&req);
}
#endif
server = (uv_handle_t*)&pipeServer;
serverType = PIPE;