Ignore:
Timestamp:
May 8, 2012, 6:36:46 PM (13 years ago)
Author:
Herwig Bauernfeind
Message:

Samba 3.3: Ensure pid file is only deleted by parent smbd (Silvan's fix)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.3.x/source/smbd/server.c

    r578 r701  
    975975
    976976#ifdef __OS2__
    977         /* On OS/2 - we need to remove the PID file on server exit otherwise we may not be able to restart Samba */
    978         char pidFile[1024];
    979         slprintf(pidFile, sizeof(pidFile)-1, "%s/%s.pid", lp_piddir(), "smbd");
    980         unlink(pidFile);
     977        if (am_parent){
     978                /* On OS/2 - we need to remove the PID file on server exit otherwise we may not be able to restart Samba */
     979                char pidFile[1024];
     980                slprintf(pidFile, sizeof(pidFile)-1, "%s/%s.pid", lp_piddir(), "smbd");
     981                unlink(pidFile);
     982        }
    981983#endif
    982984
Note: See TracChangeset for help on using the changeset viewer.