develop
Petr Mrázek 2009-11-01 10:20:13 +00:00
parent 8a45c15af9
commit 482e8b4447
1 changed files with 9 additions and 1 deletions

@ -122,7 +122,15 @@ bool Process::attach()
{ {
status = kill(my_handle,SIGSTOP); status = kill(my_handle,SIGSTOP);
cout << "sent SIGSTOP" << endl; cout << "sent SIGSTOP" << endl;
if(status != -1) break; if(status != -1)
{
break;
}
else
{
perror("kill(SIGSTOP)");
cin.ignore();
}
} }
while (!isStopped(my_handle)) while (!isStopped(my_handle))
{ {