diff --git a/library/DFProcess.cpp b/library/DFProcess.cpp index 7d21c4f95..f638eac41 100644 --- a/library/DFProcess.cpp +++ b/library/DFProcess.cpp @@ -121,11 +121,7 @@ bool Process::attach() // kill (SIGSTOP) status = kill(my_handle,SIGSTOP); //cout << "sent SIGSTOP" << endl; - if(status != -1) - { - break; - } - else + if(status == -1) { perror("kill(SIGSTOP)"); return false;