Branch: Tag:


2016-02-25 20:32:43 by Stephen R. van den Berg <>

Revert "pgsql: Kludge around clone race in Pike core."

This reverts commit f339d7f8c91c995295fd74d52d95a6518b3a61fa.

The kludge should not be needed anymore due to a checked in fix
in the Pike compiler.

217:       if(!_port)    _port = PGSQL_DEFAULT_PORT; -  -  // FIXME Looks like a bug in the cloning of an object -  // If we do not loop here, and this function is called in two threads -  // simultaneously, *and* the .pgsql_util class has not been instantiated -  // yet, then Pike can throw an "Attempting to clone an unfinished program" -  // error. -  -  while(catch(.pgsql_util.register_backend())) // Placate race in cloning -  sleep(0); // Yield +  .pgsql_util.register_backend();    _shortmux=Thread.Mutex();    reconnect();   }