commit b246ebb01fd779208a9c53c20075fc8a94334f96 from: Caleb Stein date: Wed May 13 08:53:13 2026 UTC prevent child from executing parent code on failed execv commit - b60fb725c1f51b29e94172f5f7e12e73caa40502 commit + b246ebb01fd779208a9c53c20075fc8a94334f96 blob - 171da03417bae14675e68d9eafc3a2e819a03d9e blob + d4e8a40971cdef4fdb032ef56e0a43a25a977ec9 --- modules/weather.c +++ modules/weather.c @@ -33,7 +33,10 @@ get_weather(int fd) } (void)dup2(fd, STDOUT_FILENO); if (execv("/usr/local/bin/weatherbar", argv) < 0) + { perror("execv"); + _exit(1); + } } void