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:
Samuel Ortiz 2017-01-10 22:48:47 +01:00
parent 9a4a1092fe
commit 468746aa28
No known key found for this signature in database
GPG key ID: 8A803CDD4F566C4A

View file

@ -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);