[BACK]Return to listen.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / aucat

Diff for /src/usr.bin/aucat/Attic/listen.c between version 1.1 and 1.2

version 1.1, 2008/10/26 08:49:44 version 1.2, 2008/10/29 22:40:56
Line 16 
Line 16 
  */   */
 #include <sys/types.h>  #include <sys/types.h>
 #include <sys/socket.h>  #include <sys/socket.h>
   #include <sys/stat.h>
 #include <sys/un.h>  #include <sys/un.h>
   
 #include <err.h>  #include <err.h>
Line 66 
Line 67 
                 sizeof(struct sockaddr_un)) < 0) {                  sizeof(struct sockaddr_un)) < 0) {
                 perror("bind");                  perror("bind");
                 exit(1);                  exit(1);
           }
           if (chmod(sockname.sun_path, 0777) < 0) {
                   /* not fatal, just print error */
                   perror(sockname.sun_path);
         }          }
         if (listen(sock, 1) < 0) {          if (listen(sock, 1) < 0) {
                 perror("listen");                  perror("listen");

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2