all repos — tint2 @ 88fa3b75447fc6adce1dacaf879e34b16765bd80

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

*fix* unset sigmask only for child fork


git-svn-id: http://tint2.googlecode.com/svn/trunk@283 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
Andreas.Fink85 Andreas.Fink85@121b4492-b84c-0410-8b4c-0d4edfb3f3cc
commit

88fa3b75447fc6adce1dacaf879e34b16765bd80

parent

6c40536d1a0a9935e63c7414384839883a0d4077

1 files changed, 4 insertions(+), 4 deletions(-)

jump to
M src/clock/clock.csrc/clock/clock.c

@@ -263,12 +263,12 @@ break;

} if (command) { pid_t pid; - sigset_t sigset; - sigprocmask(SIG_SETMASK, &sigset, 0); - sigprocmask(SIG_UNBLOCK, &sigset, 0); pid = fork(); - sigprocmask(SIG_BLOCK, &sigset, 0); 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); }