From: Ralf Horstmann Some vserver kernel emulate the init process in a way that ppid of process 1 is 1. This lets the debugger search function go into an endless loop. Since pid 1 is unlikely to be a debugger, we can safely ignore pid 1 and just quit searching when we reach pid 1 instead of 0. --- Index: boost_1_35_0/boost/test/impl/debug.ipp =================================================================== --- boost_1_35_0.orig/boost/test/impl/debug.ipp +++ boost_1_35_0/boost/test/impl/debug.ipp @@ -644,7 +644,7 @@ under_debugger() pid_t pid = ::getpid(); - while( pid != 0 ) { + while( pid != 0 && pid != 1 ) { process_info pi( pid ); // !! ?? should we use tokenizer here instead?