Skip to content

Commit 9b15d89

Browse files
v4hnpr2
authored and
pr2
committed
avoid a segfault if the script cannot be executed
execl fails continued with a copy of the script process (but only one window...)
1 parent fb3b443 commit 9b15d89

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ void displayButton(Button button, int button_id, std::string group, ImVec2 butto
304304
{
305305
execl("/bin/bash", "bash", "-c", button.path.c_str(), NULL);
306306
}
307+
exit(1); // only reached if exec failed above
307308
}
308309
glfwMakeContextCurrent(window);
309310
}

0 commit comments

Comments
 (0)