Skip to content

Commit

Permalink
Wait 5 secs for inspectors
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyseek committed Feb 1, 2023
1 parent ae24379 commit be8251a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions trapit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ int cmd_trap(const char *prog, int argc, char **argv) noexcept {
}
}

sleep(5); // Wait the inspectors to start up

execvp(exec_argv[0], (char *const *) exec_argv);
std::cerr << "Cannot execute " << exec_argv[0] << ": "
<< strerror(errno) << " (errno=" << errno << ")" << std::endl;
Expand Down

0 comments on commit be8251a

Please sign in to comment.