pike.git / lib / modules / Sql.pmod / pgsql_util.pmod

version» Context lines:

pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:72:    }   }      private void run_local_backend() {    Thread.MutexKey lock;    int looponce;    do {    looponce=0;    if(lock=backendmux->trylock()) {    PD("Starting local backend\n"); -  while(clientsregistered) // Autoterminate when not needed -  local_backend(4096.0); +  while (clientsregistered) { // Autoterminate when not needed +  mixed err; +  if (err = catch(local_backend(4096.0))) +  werror(describe_backtrace(err)); +  }    PD("Terminating local backend\n");    lock=0;    looponce=clientsregistered;    }    } while(looponce);   }      //! Registers yourself as a user of this backend. If the backend   //! has not been started yet, it will be spawned automatically.   final void register_backend() {