Use libdaemon API to remove pid file
authorJustin Sobota <jsobota@ti.com>
Tue, 11 Mar 2014 20:53:35 +0000 (16:53 -0400)
committerJustin Sobota <jsobota@ti.com>
Tue, 11 Mar 2014 20:53:35 +0000 (16:53 -0400)
test/k2h/armv7/linux/rm_server.c
test/k2k/armv7/linux/rm_server.c

index 2b6b3aed16fd6e55aa793c96f266339cfaa71901..980e3b64b122d0c79cc1f6d7d0fe8860a54191f3 100644 (file)
@@ -527,8 +527,7 @@ int main(int argc, char *argv[])
                 printf("Failed to kill daemon: %s\n", strerror(errno));
                 exit(EXIT_FAILURE);
             }
-            /* Delete PID file */
-            unlink(get_pid_file_name());
+            daemon_pid_file_remove();
             exit(EXIT_SUCCESS);
         }
 
index 2b6b3aed16fd6e55aa793c96f266339cfaa71901..980e3b64b122d0c79cc1f6d7d0fe8860a54191f3 100644 (file)
@@ -527,8 +527,7 @@ int main(int argc, char *argv[])
                 printf("Failed to kill daemon: %s\n", strerror(errno));
                 exit(EXIT_FAILURE);
             }
-            /* Delete PID file */
-            unlink(get_pid_file_name());
+            daemon_pid_file_remove();
             exit(EXIT_SUCCESS);
         }