[isf-wifidog] wdctl restart

Mina Naguib webmaster at topfx.com
Dim 29 Mai 22:42:46 EDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

- -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


The WiFiDog client now has a new feature.  You can use the wdctl  
utility with the new "restart" argument to have wifidog restart itself.

What the fuss about ?

Clients stay connected :)

This will come extremely handy when we upgrade hotspots.  We no  
longer have to wait for a hotspot to have no users before we stop the  
old wifidog and start the new one.  A simple "wdctl restart" will do  
the magic.

Now, since we're hoping to release a stable version soon, I did not  
commit this feature straight into the CVS trunk.  I've committed it  
into it's own branch named "wdctlrestart".  Feel free to test is/play  
with it.

I propose we merge that branch into the trunk as soon as we release  
the upcoming stable.

For your eyes, here is the changelog entry:

         * New wdctl command "restart" which will get wifidog to  
restart itself
         while preserving the existing clientlist.  Perfect for 0- 
downtime
         upgrading!
         * safe.c: New safe_fork that croaks if the fork fails, also  
takes care of
         closing some global file descriptors for the child
         * debug.c: Now also logs the PID as part of every entry
         * gateway.c: Handler for SIGCHLD now waitpid()s with WNOHANG  
flag to prevent deadlock
         when the handler is called and another wait() or waitpid()  
is used
         * util.c: execute() now uses waitpid() instead of wait() to  
reap only the child
         it fork/executed
         * Extra debugging entries throughout code



- -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFCmn2heS99pGMif6wRAvosAJ0cCRr5S+OF+Uw1OBSUGNe2ArHZOACg5jXh
7NFQF5f7ZH+ec+7B90dMwrk=
=dHod
- -----END PGP SIGNATURE-----

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFCmn2meS99pGMif6wRAtDZAKC4a5VOZXq9SZfwrK+V/dWazOOT4gCg0m2s
lGq92sG0xcW9RxKsmqM/haA=
=Yqyi
-----END PGP SIGNATURE-----


Plus d'informations sur la liste de diffusion WiFiDog