[Dnsmasq-discuss] forwarder process owner, debug versus non debug mode

Simon Kelley simon at thekelleys.org.uk
Thu Jun 14 16:16:12 BST 2012


On 14/06/12 15:54, François-Xavier Le Bail wrote:
> Hello,
> 
> When I use the debug mode, the process owner of the forwarder is not nobody (by default) but root :
> 
> Result: potential differences in access to files, etc.
> 
> 
> Any reason ?
> 

The uid-switching stuff can make it difficult to run dnsmasq under a
debugger, for the -d flag switches it off. (It switches off other things
too: chdir ("/"), trying to write the pidfile, closing stdin,stdout and
stderr, Setting process capabilities) It switches on core dumps.


There's another flag -k, which stops forking to the background, but
doesn't do the other debugging stuff, that may be a better thing to use
if you're making an installation, rather than debugging.

HTH

Simon.

> 
> # dnsmasq -v
> Dnsmasq version 2.62  Copyright (c) 2000-2012 Simon Kelley
> Compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP DHCPv6 no-Lua 
> no-TFTP no-conntrack
> 
> 
> # dnsmasq 
> # ps -ef|grep dnsmasq
> nobody    1806     1  0 00:12 ?        00:00:00 dnsmasq
> root      1807  1806  0 00:12 ?        00:00:00 dnsmasq
> 
> # dnsmasq -d & 
> # dnsmasq: started, version 2.62 cachesize 150
> [. . .]
> 
> # ps -ef|grep dnsmasq
> root      1813  1777  0 00:13 ttyS0    00:00:00 dnsmasq -d
> root      1814  1813  0 00:13 ttyS0    00:00:00 dnsmasq -d
> 
> 
> Best regards,
> Francois-Xavier
> 
> 
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
> 




More information about the Dnsmasq-discuss mailing list