In and among a large number of changes, there was one error that has caused
ntop's cvs daily snapshots (available at http://snapshot.ntop.org) starting
with 05Apr2002 to fail to run properly.

The program compiles, starts up and then won't respond to the web server.  A
quick check showed "ntop" running, but the web server wouldn't respond and
data wasn't being captured.  Checking the running processes shows only 3-4
instead of the usual 12+ running.  Basically, the threads were being created
before daemonizing, so that they died, but ntop still tried to use their
services and/or assumed they were running...

Attached are TWO versions of the patch (I don't know which one Luca will
accept).

(I prefer the second version, because the function name really is
misleading)

BMS0053-daemonizefails-minimal.patch
   Just moves the offending line back where it belongs...

BMS0053-daemonizefails.patch
   Deletes the routine named "postCommandLineArgumentsInitialization"
      - which used to do a lot of initialization, all of which except
daemonizing is now done inline or in other routines
   Inserts the function to daemonize the program (non Win32) inline

I know the problem affected Linux and probably other *nixes.
It would not have affected Win32.
I don't know about Macs.


Either patch can be applied to all of the affected snapshots - I'll post a
note when the 1st snapshot which INCLUDES the patch is available.

Known to fail (at this time):

ntop-02-04-05.tgz
ntop-02-04-06.tgz
ntop-02-04-07.tgz
ntop-02-04-08.tgz
ntop-02-04-09.tgz
ntop-02-04-10.tgz
ntop-02-04-11.tgz

Feedback please and yes, I will post a version of this in the FAQs

-----Burton



Attachment: BMS0053-daemonizefails.patch
Description: Binary data

Attachment: BMS0053-daemonizefails-minimal.patch
Description: Binary data

Reply via email to