Am 30.09.2014 19:25, schrieb Michael Biebl:
> Am 30.09.2014 um 19:10 schrieb Bernhard Übelacker:
>> Will try with a test system.
>
> Ah right. Missed that part. Can you rebase the patch on top of v215
> and maybe also post it upstream for review (either mailing list [1]
> or bug tracker [2])? This isn't a Debian specific issue, so it
> makes sense to push your patch upstream.
Installed a test VM with current Debian Jessie amd64.
With attached small test program I could observe the 90 seconds delay
while having v208 installed (test program blocks in signal handling,
basically the same what happens to kdesud, probably because of
kDebug/kWarning usage in signal handler).
However, after installing v215 (apt-get install systemd/unstable) I
was not able to see the delays at all.
Therefore I think this bug can be closed, sorry for the noise.
Kind regards,
Bernhard
#include <stdio.h>
#include <signal.h>
#include <string.h>
#include <unistd.h>
struct sigaction act;
void signal_exit(int sig)
{
//kDebug(1205) << "Exiting on signal " << sig << "\n";
//kdesud_cleanup();
//exit(1);
printf("signal_exit\n");
sleep(10000);
}
void sigchld_handler(int a)
{
//char c = ' ';
//write(pipeOfDeath[1], &c, 1);
printf("sigchld_handler\n");
sleep(10000);
}
int main()
{
printf("I am %lu\n", (unsigned long)getpid());
// Signal handlers
struct sigaction sa;
sa.sa_handler = signal_exit;
sigemptyset(&sa.sa_mask);
sa.sa_flags = 0;
sigaction(SIGHUP, &sa, 0L);
sigaction(SIGINT, &sa, 0L);
sigaction(SIGTERM, &sa, 0L);
sigaction(SIGQUIT, &sa, 0L);
sa.sa_handler = sigchld_handler;
sa.sa_flags = SA_NOCLDSTOP;
sigaction(SIGCHLD, &sa, 0L);
sa.sa_handler = SIG_IGN;
sigaction(SIGPIPE, &sa, 0L);
// Waiting for CTRL+C...
sleep(10000);
return 0;
}
_______________________________________________
Pkg-systemd-maintainers mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-systemd-maintainers