Ignore:
Timestamp:
Nov 29, 2012, 1:59:04 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/source3/lib/pidfile.c

    r745 r751  
    3131/* return the pid in a pidfile. return 0 if the process (or pidfile)
    3232   does not exist */
    33 pid_t pidfile_pid(const char *name)
     33pid_t pidfile_pid(const char *name)
    3434{
    3535        int fd;
     
    3737        pid_t pid;
    3838        unsigned int ret;
     39
     40
    3941        char * pidFile;
    4042
     43
     44
     45
     46
     47
     48
     49
     50
     51
     52
     53
     54
     55
     56
     57
     58
     59
     60
     61
    4162        if (asprintf(&pidFile, "%s/%s.pid", lp_piddir(), name) == -1) {
     63
    4264                return 0;
    4365        }
     66
     67
    4468
    4569        fd = sys_open(pidFile, O_NONBLOCK | O_RDONLY, 0644);
Note: See TracChangeset for help on using the changeset viewer.