Function rc_make_pid_file¶
Defined in File start_stop.h
Function Documentation¶
-
int rc_make_pid_file(void)¶
Makes a PID file RC_PID_FILE (/run/shm/robotcontrol.pid) containing the current PID of your process.
- Returns
Returns 0 if successful. If that file already exists then it is not touched and this function returns 1 at which point we suggest you run rc_kill_exising_process() to kill that process. Returns -1 if there is some other problem writing to the file.