PASS stores the pid to the /var/run/.pass.pid. But it is not used
and it has the security issue if the path is symbolic link.
This patch removes the /var/run/.pass.pid file.
Change-Id: I816da948f9ebe9203119bc4b21041d0a926aa338
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
#include "devices.h"
#include "edbus-handler.h"
-#define PIDFILE_PATH "/var/run/.pass.pid"
-
-static void writepid(char *pidpath)
-{
- FILE *fp;
-
- fp = fopen(pidpath, "w");
- if (fp != NULL) {
- fprintf(fp, "%d", getpid());
- fclose(fp);
- }
-}
-
static void sig_quit(int signo)
{
_D("received SIGTERM signal %d", signo);
int main(int argc, char **argv)
{
- writepid(PIDFILE_PATH);
ecore_init();
return pass_main(argc, argv);
}