Fix pid file permission
This commit is contained in:
parent
4bd6c0d0d5
commit
77fd797019
2
fsipd.c
2
fsipd.c
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user