[polypaudio-commits] r772 - /trunk/src/polypcore/socket-server.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Sat Apr 22 13:04:26 PDT 2006


Author: lennart
Date: Sat Apr 22 22:04:25 2006
New Revision: 772

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=772&root=polypaudio&view=rev
Log:
first unlink the socket, the close it

Modified:
    trunk/src/polypcore/socket-server.c

Modified: trunk/src/polypcore/socket-server.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polypcore/socket-server.c?rev=772&root=polypaudio&r1=771&r2=772&view=diff
==============================================================================
--- trunk/src/polypcore/socket-server.c (original)
+++ trunk/src/polypcore/socket-server.c Sat Apr 22 22:04:25 2006
@@ -379,13 +379,14 @@
 
 static void socket_server_free(pa_socket_server*s) {
     assert(s);
-    close(s->fd);
 
     if (s->filename) {
         unlink(s->filename);
         pa_xfree(s->filename);
     }
 
+    close(s->fd);
+
     pa_xfree(s->tcpwrap_service);
 
     s->mainloop->io_free(s->io_event);
@@ -405,7 +406,6 @@
     s->on_connection = on_connection;
     s->userdata = userdata;
 }
-
 
 char *pa_socket_server_get_address(pa_socket_server *s, char *c, size_t l) {
     assert(s && c && l > 0);




More information about the pulseaudio-commits mailing list