Ignore:
Timestamp:
12/29/12 09:23:04 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Added the deleting of the socket file when the socket object is destroyed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/xplcommon/posix/LocalServerSocket.cc

    r12 r13  
    3939
    4040#include <sys/socket.h>
    41 #include <sys/un.h>
    4241
    4342//------------------------------------------------------------------------------
     
    6463    acceptor(this)
    6564{
    66     struct sockaddr_un sun;
    6765    sun.sun_family = AF_UNIX;
    6866    setupPath(sun, name);
     
    8381//------------------------------------------------------------------------------
    8482
     83LocalServerSocket::~LocalServerSocket()
     84{
     85    unlink(sun.sun_path);
     86}
     87
     88//------------------------------------------------------------------------------
     89
    8590// Local Variables:
    8691// mode: C++
Note: See TracChangeset for help on using the changeset viewer.