[PATCH v2] Allow PID file to be written in foreground mode
pontus.fuchs at gmail.com
Wed Jan 2 04:08:06 EST 2013
On 2012-12-23 11:46, Jouni Malinen wrote:
> On Wed, Dec 12, 2012 at 12:28:10PM +0100, Pontus Fuchs wrote:
>> I wanted hostapd to write a PID file in foreground mode but I found
>> that it couldn't. It will silently ignore the -P option when -B is
>> not specified on the command line.
>> Fix this by moving the PID file writing from os_daemonize to a new
> What's the use case for this? The previous pair of os_daemonize and
> os_daemonize_terminate was matching pretty nicely while this this
> combination of three functions and especially the name of
> os_daemonize_terminate in this case is not as clean.
The purpose was to have hostapd write it's pid when started through
logwrapper. I ended up solving my problem in another way so please drop
More information about the HostAP