rem: resume_thread(fListener);
add: char name[B_OS_NAME_LENGTH]; snprintf(name, sizeof(name), "team %ld message count", fTeam); fMessageCountSem = create_sem(0, name); if (fMessageCountSem < 0) { printf("debug_server: TeamDebugHandler::Init(): Failed to create " "message count semaphore: %s\n", strerror(fMessageCountSem)); return fMessageCountSem; }   snprintf(name, sizeof(name), "team %ld handler", fTeam); fHandlerThread = spawn_thread(&_HandlerThreadEntry, name, B_NORMAL_PRIORITY, this); if (fHandlerThread < 0) { printf("debug_server: TeamDebugHandler::Init(): Failed to spawn " "handler thread: %s\n", strerror(fHandlerThread)); return fHandlerThread; }  resume_thread(fHandlerThread);
context: DebugServer::Init(){	// create listener port	fListenerPort = create_port(10, "kernel listener");	if (fListenerPort < 0)		return fListenerPort;	// spawn the listener thread	fListener = spawn_thread(_ListenerEntry, "kernel listener",		B_NORMAL_PRIORITY, this);	if (fListener < 0)		return fListener;	// register as default debugger	status_t error = install_default_debugger(fListenerPort);	if (error != B_OK)		return error;	// resume the listener	resume_thread(fListener);	return B_OK;}