conmon: Use the full PID file path
And not a hardcoded "pidfile". Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
parent
9a4a1092fe
commit
468746aa28
1 changed files with 1 additions and 1 deletions
|
@ -200,7 +200,7 @@ int main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Read the pid so we can wait for the process to exit */
|
/* Read the pid so we can wait for the process to exit */
|
||||||
g_file_get_contents("pidfile", &contents, NULL, &err);
|
g_file_get_contents(pid_file, &contents, NULL, &err);
|
||||||
if (err) {
|
if (err) {
|
||||||
fprintf(stderr, "Failed to read pidfile: %s\n", err->message);
|
fprintf(stderr, "Failed to read pidfile: %s\n", err->message);
|
||||||
g_error_free(err);
|
g_error_free(err);
|
||||||
|
|
Loading…
Reference in a new issue