fix for FSCORE-40

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5566 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris
2007-08-03 21:29:01 +00:00
parent d3aa5b433b
commit f1222ba2fd
14 changed files with 48 additions and 30 deletions

View File

@@ -96,7 +96,9 @@ static int freeswitch_kill_background()
}
/* pull the pid from the file */
fscanf(f, "%d", &pid);
if(fscanf(f, "%d", &pid)!=1) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR,"Unable to get the pid!\n");
}
/* if we have a valid pid */
if (pid > 0) {