Re: race condition in ipfw restart (please review the fix)

2004-03-29 Thread Valentin Nechayev
Thu, Mar 25, 2004 at 01:59:34, fjoe (Max Khon) wrote about "race condition in ipfw restart (please review the fix)": MK> ipfw restart has race condition: there is "sleep 2" statement after MK> killall natd but if natd will not die in 2 seconds ipfw can't MK>

race condition in ipfw restart (please review the fix)

2004-03-24 Thread Max Khon
Hello! ipfw restart has race condition: there is "sleep 2" statement after killall natd but if natd will not die in 2 seconds ipfw can't start nat daemon (natd: Unable to bind divert socket.: Address already in use). I would like to commit the fix for it. Diff and /etc/rc.d/natd script attached.