Pid handling
[ICd internal functions]


Functions

gboolean icd_pid_remove (const char *pidfile)
static gint icd_pid_read (const char *pidfile)
gint icd_pid_check (const char *pidfile)
gboolean icd_pid_write (const char *pidfile)

Function Documentation

gint icd_pid_check ( const char *  pidfile  ) 

Check wheter the process id stored in the pid file exists

Parameters:
pidfile the full pathname of the pid file
Returns:
0 if no pid file is found or no such process is running, otherwise the process id of the existing process

static gint icd_pid_read ( const char *  pidfile  )  [static]

Read the process id from the pid file

Parameters:
pidfile the full pathname of the pid file
Returns:
the process id or -1 on error

gboolean icd_pid_remove ( const char *  pidfile  ) 

Remove process id file

Parameters:
pidfile the full pathname of the pid file
Returns:
TRUE on success, FALSE on failure

gboolean icd_pid_write ( const char *  pidfile  ) 

Write the process id to the pid file

Parameters:
pidfile the full pathname of the pid file
Returns:
TRUE on success, FALSE on failure


Generated on Tue Feb 24 16:21:36 2009 for ICd2 by  doxygen 1.5.1