Changeset 701 for branches/samba-3.3.x


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)

Location:
branches/samba-3.3.x/source
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.3.x/source/build.cmd

    r699 r701  
    2828
    2929/* number of make jobs to execute at the same time */
    30 jobs = "2"
     30jobs = "3"
    3131
    3232'@echo off'
     
    8585build_parms = ""
    8686
    87 /* delete the following 7 lines to remove libc switching capability */
     87/* delete the following 8 lines to remove libc switching capability */
    8888select
     89    when pos("065", cmdline)  > 0 then libc = "065"
    8990    when pos("064X", cmdline) > 0 then libc = "064X"
    90     when pos("063", cmdline) > 0 then  libc = "063"
    91     otherwise libc = "064"
     91    when pos("064", cmdline)  > 0 then libc = "064"
     92    when pos("063", cmdline)  > 0 then  libc = "063"
     93    otherwise libc = "065"
    9294end
    9395address cmd "call "libc".cmd"
  • branches/samba-3.3.x/source/build.options

    r680 r701  
    11MAKE=""
    2 LIBC="064"
     2LIBC="065"
    33BRAND="YES"
  • 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.