--- a/src/port.c 2013-06-12 16:20:47.000000000 +0200 +++ b/src/port.c 2014-01-05 21:00:31.315108890 +0100 @@ -448,6 +448,10 @@ if (err==0){ unlink(sa.sun_path); }else ortp_error("getsockname(): %s",strerror(errno)); + + if (shutdown(spipe, SHUT_RDWR) != 0) + ortp_error("shutdown(): %s", strerror(errno)); + return close(spipe); }