Revision 59be6a47 src/unixserversocket.cpp

View differences:

src/unixserversocket.cpp
43 43
  addr.sun_family = AF_UNIX;
44 44
  strcpy(addr.sun_path, filename.c_str());
45 45

  
46
  mode_t oldMask = umask(007);
46 47
  while (bind(fd, (struct sockaddr *) &addr, sizeof(addr)) < 0) {
47 48
    if (errno == EADDRINUSE) {
48 49
      // Possibly old socket
......
67 68
	      << strerror(errno) << std::endl;
68 69
    exit(1);
69 70
  }
71

  
72
  umask(oldMask);
70 73
}
71 74

  
72 75
void UnixServerSocket::setNonBlocking()

Also available in: Unified diff