From df47c7b828c02afbabc4d024008fabb07a882397 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Wed, 14 Feb 2007 12:13:49 +0000 Subject: Add a wrapper around close() to work around Windows' ass backwards way of handling sockets. git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1429 fefdeb5f-60dc-0310-8127-8f9354f1896f --- src/pulsecore/pipe.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/pulsecore/pipe.c') diff --git a/src/pulsecore/pipe.c b/src/pulsecore/pipe.c index a659915e..7f6bb2e9 100644 --- a/src/pulsecore/pipe.c +++ b/src/pulsecore/pipe.c @@ -3,7 +3,7 @@ /*** This file is part of PulseAudio. - Copyright 2006 Pierre Ossman for Cendio AB + Copyright 2006-2007 Pierre Ossman for Cendio AB PulseAudio is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published @@ -144,17 +144,17 @@ int pipe(int filedes[2]) { if ((addr.sin_port != peer.sin_port) || (addr.sin_addr.s_addr != peer.sin_addr.s_addr)) goto error; - close(listener); + pa_close(listener); return 0; error: if (listener >= 0) - close(listener); + pa_close(listener); if (filedes[0] >= 0) - close(filedes[0]); + pa_close(filedes[0]); if (filedes[1] >= 0) - close(filedes[0]); + pa_close(filedes[0]); return -1; } -- cgit