Changeset 753


Ignore:
Timestamp:
Nov 29, 2012, 2:47:28 PM (12 years ago)
Author:
Silvan Scherrer
Message:

Samba Server 3.5: remove pid when exiting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified branches/samba-3.5.x/source3/smbd/server.c

    r739 r753  
    897897        printing_end();
    898898
     899#ifdef __OS2__
     900        if (am_parent){
     901                /* On OS/2 - we need to remove the PID file on server exit otherwise we may not be able to restart Samba */
     902                char pidFile[1024];
     903                slprintf(pidFile, sizeof(pidFile)-1, "%s/%s.pid", lp_piddir(), "smbd");
     904                unlink(pidFile);
     905        }
     906#endif
    899907        /*
    900908         * we need to force the order of freeing the following,
Note: See TracChangeset for help on using the changeset viewer.