Hi All,

So I'm having this problem that the logging system that I have used
successfully on other linux platforms is not working on
i386-redhat-linux-gnu.

The logging system is designed to store logging messages and then write
them to the log file in a low priority thread.  However when I run the
code on i386-redhat-linux-gnu the logging thread doesn't even start.
The main Logger class implements runnable, and a new thread is created
in the constructor:

  public Logger( Log p_log)
  {
    if(o_verbosity > 0) System.out.println("creating new logger");
    o_messages = new Vector(100);
    o_log = p_log;
    o_thread = new Thread( this);
    o_running = false;
    o_sem = new Semaphore();
    o_thread.start();
    if(o_verbosity > 0) System.out.println("starting logger thread");
  }

and as you can see the thread is started, but the run method doesn't
start.  Or at least the debug command on the first line of the run
command does not get displayed:


  public void run()
  {
    if(o_verbosity > 0) System.out.println("logger thread running ...");

    o_running = true;
    ...
    ...


And yes, the o_verbosity is set to 10.  Is there some special setting
that I need on red hat linux to allow the spawning of new threads?

Thanks in advance.

CHEERS> SAM


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to