Changeset 754


Ignore:
Timestamp:
Nov 29, 2012, 2:57:00 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server 3.6: remove pid when exiting

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/lib/replace/poll.c

    r752 r754  
    3737#include <sys/ioctl.h>
    3838#endif
     39
    3940
    4041int rep_poll(struct pollfd *fds, nfds_t nfds, int timeout)
  • trunk/server/source3/smbd/server_exit.c

    r751 r754  
    165165        printing_end();
    166166
     167#ifdef __OS2__
     168        if (am_parent){
     169                /* On OS/2 - we need to remove the PID file on server exit otherwise we may not be able to restart Samba */
     170                char pidFile[1024];
     171                slprintf(pidFile, sizeof(pidFile)-1, "%s/%s.pid", lp_piddir(), "smbd");
     172                unlink(pidFile);
     173        }
     174#endif
     175
    167176        if (how != SERVER_EXIT_NORMAL) {
    168177                DEBUGSEP(0);
Note: See TracChangeset for help on using the changeset viewer.