Changeset 740 for vendor/current/source4/smbd/pidfile.c
- Timestamp:
- Nov 14, 2012, 12:59:34 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source4/smbd/pidfile.c
r414 r740 39 39 char *pidFile; 40 40 41 asprintf(&pidFile, "%s/%s.pid", piddir, name); 41 if (asprintf(&pidFile, "%s/%s.pid", piddir, name) < 0) { 42 return 0; 43 } 42 44 43 45 fd = open(pidFile, O_NONBLOCK | O_RDONLY, 0644); … … 86 88 pid_t pid; 87 89 88 asprintf(&pidFile, "%s/%s.pid", piddir, name); 90 if (asprintf(&pidFile, "%s/%s.pid", piddir, name) < 0) { 91 DEBUG(0,("ERROR: Out of memory\n")); 92 exit(1); 93 } 89 94 90 95 pid = pidfile_pid(piddir, name);
Note:
See TracChangeset
for help on using the changeset viewer.