commit - 2ed5bc67fecffe036fa885fc710c1781514e7391
commit + 275de8e566d3d3a015fe2bea84d1e39fb32dc145
blob - 79ed4eb381c97f07cb9e77ed8c6882740d9ea545
blob + 93d836102368fb0488ed49927ccbdc6b42f915e5
--- modules/weather.c
+++ modules/weather.c
get_weather(int fd)
{
pid_t pid = fork();
- char *argv[] = { "weatherbar", weather_location, NULL };
+ char *argv[] = { "/usr/local/bin/weatherbar", weather_location, NULL };
if (pid != 0)
{
return;
}
+ (void)dup2(STDOUT_FILENO, STDERR_FILENO);
(void)dup2(fd, STDOUT_FILENO);
if (execv("/usr/local/bin/weatherbar", argv) < 0)
{