develop
Petr Mrázek 2009-11-01 09:58:49 +00:00
parent 2bee198946
commit 9dfe3e2096
1 changed files with 5 additions and 1 deletions

@ -120,7 +120,11 @@ bool Process::attach()
if(!isStopped(my_handle)) if(!isStopped(my_handle))
{ {
kill(my_handle,SIGSTOP); kill(my_handle,SIGSTOP);
while (!isStopped(my_handle)); cout << "sent SIGSTOP" << endl;
while (!isStopped(my_handle))
{
cout << "wait step" << endl;
}
} }
usleep(10000); usleep(10000);
cout << "Attach: after conditional stop" << endl; cout << "Attach: after conditional stop" << endl;