Branch: Tag:

2012-02-14

2012-02-14 16:52:38 by Martin Stjernholm <mast@lysator.liu.se>

Avoid deadlock in Configuration.stop if called when handler threads are on hold.

The only real application is the call in RoxenTest_help.pike, afaik.

Rev: server/base_server/configuration.pike:1.724
Rev: server/base_server/roxen.pike:1.1107

6:   // Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others.   // ABS and suicide systems contributed freely by Francesco Chemolli    - constant cvs_version="$Id: roxen.pike,v 1.1106 2012/02/10 16:07:22 jonasw Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.1107 2012/02/14 16:52:38 mast Exp $";      //! @appears roxen   //!
1093:    }   }    + //! + int handler_threads_on_hold() {return !!hold_wakeup_cond;} +    protected Thread.MutexKey backend_block_lock;      void stop_handler_threads()