Skip to content

Commit

Permalink
Removed unnecessary delay when killing processes on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianReimold committed May 25, 2021
1 parent 3ffb3c5 commit 6e3ed36
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ecal/core/src/ecal_process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1590,11 +1590,7 @@ namespace eCAL
{
if (proc_id_ <= 0) return false;

bool ret_val = kill(proc_id_, SIGTERM) == 0;

sleep(2);

ret_val |= kill(proc_id_, SIGKILL) == 0;
bool ret_val = (kill(proc_id_, SIGTERM) == 0);

return ret_val;
}
Expand Down

0 comments on commit 6e3ed36

Please sign in to comment.