Update of /cvsroot/alsa/alsa-lib/src/pcm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19222/src/pcm

Modified Files:
        pcm_direct.c 
Log Message:
- added --with-tmpdir configure option.
  the directory used for socket files of direct pcm plugins.


Index: pcm_direct.c
===================================================================
RCS file: /cvsroot/alsa/alsa-lib/src/pcm/pcm_direct.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- pcm_direct.c        26 Jan 2004 15:55:09 -0000      1.15
+++ pcm_direct.c        9 Feb 2004 17:04:09 -0000       1.16
@@ -152,7 +152,7 @@
        struct timeval tv;
 
        gettimeofday(&tv, NULL);
-       snprintf(filename, size, "/tmp/alsa-dmix-%i-%li-%li", getpid(), tv.tv_sec, 
tv.tv_usec);
+       snprintf(filename, size, TMPDIR "/alsa-dmix-%i-%li-%li", getpid(), tv.tv_sec, 
tv.tv_usec);
        filename[size-1] = '\0';
        return 0;
 }
@@ -179,18 +179,18 @@
        if (server) {
                if (bind(sock, (struct sockaddr *) addr, size) < 0) {
                        int result = -errno;
-                       SYSERR("bind failed");
+                       SYSERR("bind failed: %s", filename);
                        return result;
                } else {
                        if (chmod(filename, ipc_perm) < 0) {
                                int result = -errno;
-                               SYSERR("chmod failed");
+                               SYSERR("chmod failed: %s", filename);
                                return result;
                        }
                }
        } else {
                if (connect(sock, (struct sockaddr *) addr, size) < 0) {
-                       SYSERR("connect failed");
+                       SYSERR("connect failed: %s", filename);
                        return -errno;
                }
        }



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to