mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-11-22 14:35:57 +01:00
core: fix missing sentinel in execl
This commit is contained in:
parent
667007fa4e
commit
ec2e207740
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
// 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.
|
// and I doubt anyone will make 4.2M PIDs within 5s.
|
||||||
if (fork() == 0)
|
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;
|
m_sEventLoopInternals.shouldProcess = true;
|
||||||
|
|
Loading…
Reference in a new issue