Lines Matching defs:pid

30 // Generates the pid file name for a given instanceDir.
38 char* relativePath = "\\logs\\server.pid";
44 sprintf(pidFile, "%s\\logs\\server.pid", instanceDir);
82 // Deletes the pid file for a given instance directory.
119 // Returns the pid stored in the pid file for a given server
120 // instance directory. If the pid could not be retrieved
163 // Kills the process associated with the provided pid.
167 BOOL killProcess(int pid)
172 debug("killProcess(pid=%d)", pid);
174 debug("Opening process with pid=%d.", pid);
179 pid
184 debug("The process with pid=%d has already terminated.", pid);
192 debugError("Failed to terminate process (pid=%d) lastError=%d.", pid, GetLastError());
201 debug("Successfully began termination process for (pid=%d).", pid);
212 debug("Process (pid=%d) has not yet exited. Sleeping for 1 second and will try %d more time(s).", pid, nTries);
217 debug("Process (pid=%d) has exited with exit code %d.", pid, exitCode);
225 debug("killProcess(pid=%d) returning %d", pid, processDead);
230 // Creates the pid file for a given instance directory.
231 // and a given pid.
235 BOOL createPidFile(const char* instanceDir, int pid)
241 debug("createPidFile(instanceDir='%s',pid=%d)", instanceDir, pid);
247 fprintf(f, "%d", pid);
250 debug("Successfully put pid=%d in the pid file '%s'.", pid, pidFile);
254 debugError("Couldn't create the pid file '%s' because the file could not be opened.", pidFile);
260 debugError("Couldn't create the pid file because the pid file name could not be constructed.");
388 // If the instance could be started the code will write the pid of the process
392 // Returns the pid of the process of the instance if it could be started and -1
435 // If the instance could be stopped the pid file
437 // not delete the pid file and the old pid of the process
441 // sets the pid file to be deleted on the exit of the process
445 // pid stored in a file of the server installation and
468 debug("Could not stop the server running at root '%s' because the pid could not be located.", instanceDir);
478 // we create no pid file).
497 // Returns the pid of the process associated with the command if it could be