"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "dns.c" between
darkstat-3.0.719.tar.gz and darkstat-3.0.721.tar.gz

About: darkstat is a network traffic analyzer (reports over HTTP).

dns.c  (darkstat-3.0.719):dns.c  (darkstat-3.0.721)
skipping to change at line 71 skipping to change at line 71
if (pid == 0) { if (pid == 0) {
/* We are the child. */ /* We are the child. */
privdrop(NULL /* don't chroot */, privdrop_user); privdrop(NULL /* don't chroot */, privdrop_user);
close(dns_sock[PARENT]); close(dns_sock[PARENT]);
dns_sock[PARENT] = -1; dns_sock[PARENT] = -1;
daemonize_finish(); /* drop our copy of the lifeline! */ daemonize_finish(); /* drop our copy of the lifeline! */
if (signal(SIGUSR1, SIG_IGN) == SIG_ERR) if (signal(SIGUSR1, SIG_IGN) == SIG_ERR)
errx(1, "signal(SIGUSR1, ignore) failed"); errx(1, "signal(SIGUSR1, ignore) failed");
cap_free_args(); cap_free_args();
dns_main(); dns_main();
errx(1, "DNS child fell out of dns_main()");
} else { } else {
/* We are the parent. */ /* We are the parent. */
close(dns_sock[CHILD]); close(dns_sock[CHILD]);
dns_sock[CHILD] = -1; dns_sock[CHILD] = -1;
fd_set_nonblock(dns_sock[PARENT]); fd_set_nonblock(dns_sock[PARENT]);
verbosef("DNS child has PID %d", pid); verbosef("DNS child has PID %d", pid);
} }
} }
void void
 End of changes. 1 change blocks. 
1 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)