Changeset 2133


Ignore:
Timestamp:
Jun 17, 2007, 3:47:09 PM (15 years ago)
Author:
joshe
Message:

Fix daemon to unlink the socket on exit with -s

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/daemon/daemon.c

    r1924 r2133  
    196196    {
    197197        confpath( path, sizeof path, CONF_FILE_SOCKET, 0 );
    198         fd = getsock( path );
    199     }
    200     else
    201     {
    202         fd = getsock( sockpath );
    203     }
     198        sockpath = path;
     199    }
     200    fd = getsock( sockpath );
    204201    if( 0 > fd )
    205202    {
     
    207204    }
    208205    gl_sockfd = fd;
    209     strlcpy( gl_sockpath, path, sizeof gl_sockpath );
     206    strlcpy( gl_sockpath, sockpath, sizeof gl_sockpath );
    210207
    211208    return fd;
Note: See TracChangeset for help on using the changeset viewer.