test: unlink UNIX socket before starting pipe echo server
This commit is contained in:
parent
976423c643
commit
57ee146985
@ -298,6 +298,14 @@ static int udp4_echo_start(int port) {
|
|||||||
static int pipe_echo_start(char* pipeName) {
|
static int pipe_echo_start(char* pipeName) {
|
||||||
int r;
|
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;
|
server = (uv_handle_t*)&pipeServer;
|
||||||
serverType = PIPE;
|
serverType = PIPE;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user