index
:
ndpi-daemon.git
Tiny nDPI based deep packet inspection daemons / toolkit.
log msg
author
committer
range
add/PF_RING
add/apple-bsd-port
add/config-file-support
add/event-io-abstraction
add/nDPId-UDP-endpoint
add/tls-proxy-support
add/tunnel-decoding
add/udp-aes256-gcm
main
ndpi-example-proposal
tmp
about
summary
refs
log
tree
commit
diff
path:
root
/
utils.c
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
(limited to 'utils.c')
-rw-r--r--
utils.c
2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils.c b/utils.c
index fc0472b7c..7f6665d1a 100644
--- a/
utils.c
+++ b/
utils.c
@@ -197,7 +197,7 @@ int change_user_group(char const * const user,
return -errno;
}
}
- if (pidfile != NULL)
+ if (daemonize != 0 && pidfile != NULL)
{
errno = 0;
if (chown(pidfile, pwd->pw_uid, gid) != 0)