X-Git-Url: https://git.strongswan.org/?p=strongswan.git;a=blobdiff_plain;f=src%2Fstarter%2Fstarter.c;h=8263661b256c50dcb13fdca6f7d8e7f136c61891;hp=506fe47e2305fcbb7283cb768abb74862596d62e;hb=42928551ab2a059ffef42dec7f23c95aeef6818a;hpb=cab86465bb3cf09d11bd847cb1620569963c68f2 diff --git a/src/starter/starter.c b/src/starter/starter.c index 506fe47..8263661 100644 --- a/src/starter/starter.c +++ b/src/starter/starter.c @@ -255,14 +255,14 @@ static void fatal_signal_handler(int signal) abort(); } -static bool check_pid(char *pid_file) +static bool check_pid(char *file) { struct stat stb; FILE *pidfile; - if (stat(pid_file, &stb) == 0) + if (stat(file, &stb) == 0) { - pidfile = fopen(pid_file, "r"); + pidfile = fopen(file, "r"); if (pidfile) { char buf[64]; @@ -279,8 +279,8 @@ static bool check_pid(char *pid_file) return TRUE; } } - DBG1(DBG_APP, "removing pidfile '%s', process not running", pid_file); - unlink(pid_file); + DBG1(DBG_APP, "removing pidfile '%s', process not running", file); + unlink(file); } return FALSE; }