Skip to content

Commit

Permalink
core: fix missing sentinel in execl
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Oct 10, 2023
1 parent 667007f commit ec2e207
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/PortalManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ void CPortalManager::terminate() {
// if we don't exit in 5s, we'll kill by force. Nuclear option. PIDs are not reused in linux until a wrap-around,
// and I doubt anyone will make 4.2M PIDs within 5s.
if (fork() == 0)
execl("/bin/sh", "/bin/sh", "-c", std::format("sleep 5 && kill -9 {}", m_iPID).c_str());
execl("/bin/sh", "/bin/sh", "-c", std::format("sleep 5 && kill -9 {}", m_iPID).c_str(), nullptr);

{
m_sEventLoopInternals.shouldProcess = true;
Expand Down

0 comments on commit ec2e207

Please sign in to comment.