This is the messages printed by 'configure' in case Tcl version is not fulfilling the condition for the safe fork.

========================================================================
                              WARNING!
========================================================================
The Tcl notifier (and consequently the event loop) will not be working
in Rivet running Tcl 8.5.14 and the 'prefork' MPM of Apache.
Recommended versions are:
    - threaded builds: Tcl >= 8.5.15 (8.5 version) or Tcl >= 8.6.1
    - any non-threaded build of Tcl >= 8.5.10
========================================================================

The message is open about the possibility the event loop is functioning, but definitely says with which versions of Tcl the event loop is expected to work.

I will change it into

"The Tcl notifier .... will not be working....

I don't know how to detect the support of atfork at configure time.

It should also be said that Rivet and Tcl are functional provided the programmers don't have to call the event loop. After all we all have been programming thousands of lines of Tcl call that work nonetheless.

I should also quote the bugzilla issue that started the whole business about fork and the notifier

There is more I'm committing: autoreconf complained about an outdated 'missing' file and also about the INCLUDES file that is supposed to be replaced by AM_CPPFLAGS

why is automake using a variable hinting at C++ even though the project is entirely in C is beyond my comprehension.


 -- Massimo

On 09/15/2013 07:13 PM, Harald Oehlmann wrote:
Massimo,
thank you for the summary and the release plans.

I did not check the sources, if the following is already included.
It is a proposition. We can also say, that we do not need that.

Inder the conditions:
C1) TCL threaded
C2) TCL Verson at least 8.5.15 or 8.6.1
C3) atfork not available on the system
Introduce a call to:
        Tcl_InitNotifier()
for example in
Rivet_ChildInit
(it must be after the fork, I don't know the exact place...)

It is also possible to introduce theis call always and not under the
conditions C1-C3. It does not harm. It just does not help neither:
C1: Unthreaded does not have the issue
C2: The rivet fork patch will only be in from those TCL versions
C3: If atfork is available, TCL does this already.

Thank you,
Harald



---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscr...@tcl.apache.org
For additional commands, e-mail: rivet-dev-h...@tcl.apache.org

Reply via email to