+#elif HAVE_PTH_H
+ if (control_block.threads)
+ {
+ pth_attr_t attr;
+ pth_t child_thread;
+
+ attr = pth_attr_new ();
+ pth_attr_set (attr, PTH_ATTR_JOINABLE, FALSE);
+ pth_attr_set (attr, PTH_ATTR_STACK_SIZE, 32*1024);
+ pth_attr_set (attr, PTH_ATTR_NAME, "session");
+ yaz_log (LOG_LOG, "pth_spawn");
+ child_thread = pth_spawn (attr, new_session, new_line);
+#if 0
+ pth_attr_destroy (attr);
+#endif
+ }
+ else
+ new_session(new_line);
+#endif
+