#include <cairo-xlib.h>
#include <pango/pangocairo.h>
#include <unistd.h>
+#include <signal.h>
#include "window.h"
#include "server.h"
const char* clock_get_tooltip(void* obj)
{
+ strftime(buf_tooltip, sizeof(buf_tooltip), time_tooltip_format, localtime(&time_clock.tv_sec));
return buf_tooltip;
}
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);
}