Changeset 755
- Timestamp:
- Nov 29, 2012, 3:48:54 PM (13 years ago)
- Location:
- trunk/server/source3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/source3/lib/pidfile.c
r751 r755 43 43 /* Add a suffix to the program name if this is a process with a 44 44 * none default configuration file name. */ 45 /* On OS/2, CONFIGFILE will always be different to dyn_CONFIGFILE 46 as dyn_CONFIGFILE dynamically looks up the system ETC directory */ 47 #ifndef __OS2__ 45 48 if (strcmp( CONFIGFILE, get_dyn_CONFIGFILE()) == 0) { 46 49 name = SMB_STRDUP(program_name); … … 59 62 } 60 63 } 64 #else 65 name = SMB_STRDUP(program_name); 66 #endif 61 67 62 68 if (asprintf(&pidFile, "%s/%s.pid", lp_piddir(), name) == -1) { -
trunk/server/source3/smbd/server_exit.c
r754 r755 165 165 printing_end(); 166 166 167 #ifdef __OS2__168 if (am_parent){169 /* On OS/2 - we need to remove the PID file on server exit otherwise we may not be able to restart Samba */170 char pidFile[1024];171 slprintf(pidFile, sizeof(pidFile)-1, "%s/%s.pid", lp_piddir(), "smbd");172 unlink(pidFile);173 }174 #endif175 176 167 if (how != SERVER_EXIT_NORMAL) { 177 168 DEBUGSEP(0);
Note:
See TracChangeset
for help on using the changeset viewer.