_ptyreader_thread
fReaderThread = spawn_thread(_ptyreader_thread, "PtyReader",
static int32 _ptyreader_thread(void *);