LibDebug: Don't assert when running on non-existent executable

This commit is contained in:
Maciej Zygmanowski 2021-01-22 16:54:50 +01:00 committed by Andreas Kling
parent c98055de75
commit 586c0aa043

View file

@ -84,8 +84,8 @@ OwnPtr<DebugSession> DebugSession::exec_and_attach(const String& command, String
int rc = execvpe(args[0], const_cast<char**>(args), const_cast<char**>(envp));
if (rc < 0) {
perror("execvp");
exit(1);
}
ASSERT_NOT_REACHED();
}
if (waitpid(pid, nullptr, WSTOPPED) != pid) {