Project

General

Profile

« Previous | Next » 

Revision ac94ebd8

Added by Ermal LUÇI over 12 years ago

Just check the file_exists let pkill decide if its a vaild file or not.

View differences:

etc/inc/util.inc
62 62
/* sigkill a process by pid file */
63 63
/* return 1 for success and 0 for a failure */
64 64
function sigkillbypid($pidfile, $sig) {
65
	if (is_file($pidfile))
65
	if (file_exists($pidfile))
66 66
		return mwexec("/bin/pkill -{$sig} -F {$pidfile}", true);
67 67

  
68 68
	return 0;

Also available in: Unified diff