Fix pid file permission

This commit is contained in:
Babak Farrokhi 2016-08-16 11:24:31 +04:30
parent 4bd6c0d0d5
commit 77fd797019
Signed by: farrokhi
GPG Key ID: 6B267AD85D632E9A

View File

@ -418,7 +418,7 @@ daemon_start()
pthread_t tcp6_thread, udp6_thread; pthread_t tcp6_thread, udp6_thread;
/* Check if we can acquire the pid file */ /* Check if we can acquire the pid file */
pfh = pidfile_open(NULL, 0600, &otherpid); pfh = pidfile_open(NULL, 0644, &otherpid);
if (pfh == NULL) { if (pfh == NULL) {
if (errno == EEXIST) { if (errno == EEXIST) {