X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fclock%2Fclock.c;h=6e5032d24078e3d11932232841c2b834e6a618e3;hb=35dc866951d48409e88a1fde5fdb52dfe60f3b18;hp=273fb818e17991089c391a52a85d1b9dc5ea9924;hpb=f7f08a5ff9430a8ef6f09e723d30a36a47e96bb0;p=chaz%2Ftint2 diff --git a/src/clock/clock.c b/src/clock/clock.c index 273fb81..6e5032d 100644 --- a/src/clock/clock.c +++ b/src/clock/clock.c @@ -22,8 +22,6 @@ #include #include #include -#include -#include #include #include "window.h" @@ -33,6 +31,7 @@ #include "taskbar.h" #include "clock.h" #include "timer.h" +#include "common.h" char *time1_format; @@ -302,17 +301,6 @@ void clock_action(int button) command = clock_rclick_command; break; } - if (command) { - pid_t pid; - pid = fork(); - if (pid == 0) { - // change for the fork the signal mask -// sigset_t sigset; -// sigprocmask(SIG_SETMASK, &sigset, 0); -// sigprocmask(SIG_UNBLOCK, &sigset, 0); - execl("/bin/sh", "/bin/sh", "-c", command, NULL); - _exit(0); - } - } + tint_exec(command); }