Addendum: Save thd's server_status & option_bits before setting the thread specific pointer.
Attach a file by drag & drop or click to upload