Changeset 751 for trunk/server/source3/lib/pidfile.c
- Timestamp:
- Nov 29, 2012, 1:59:04 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/server/source3/lib/pidfile.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/source3/lib/pidfile.c
r745 r751 31 31 /* return the pid in a pidfile. return 0 if the process (or pidfile) 32 32 does not exist */ 33 pid_t pidfile_pid(const char * name)33 pid_t pidfile_pid(const char *name) 34 34 { 35 35 int fd; … … 37 37 pid_t pid; 38 38 unsigned int ret; 39 40 39 41 char * pidFile; 40 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 41 62 if (asprintf(&pidFile, "%s/%s.pid", lp_piddir(), name) == -1) { 63 42 64 return 0; 43 65 } 66 67 44 68 45 69 fd = sys_open(pidFile, O_NONBLOCK | O_RDONLY, 0644);
Note:
See TracChangeset
for help on using the changeset viewer.
