diff --git a/Applications/Debugger/DebugSession.cpp b/Applications/Debugger/DebugSession.cpp index 8766ad60b2..86c59e8196 100644 --- a/Applications/Debugger/DebugSession.cpp +++ b/Applications/Debugger/DebugSession.cpp @@ -77,7 +77,6 @@ OwnPtr DebugSession::exec_and_attach(const String& command) return nullptr; } - // TOOD: do we actually need this waitpid? if (waitpid(pid, nullptr, WSTOPPED) != pid) { perror("waitpid"); return nullptr; diff --git a/Applications/Debugger/main.cpp b/Applications/Debugger/main.cpp index 05fc498487..94fbe0ffcb 100644 --- a/Applications/Debugger/main.cpp +++ b/Applications/Debugger/main.cpp @@ -159,8 +159,11 @@ void print_help() int main(int argc, char** argv) { - // TODO: pledge & unveil - // TODO: check that strace still works + if (pledge("stdio proc exec rpath", nullptr) < 0) { + perror("pledge"); + return 1; + } + if (argc == 1) return usage();