[Kst] extragear/graphics/kst/kst/extensions/js
George Staikos
staikos at kde.org
Mon Dec 19 20:55:39 CET 2005
SVN commit 489799 by staikos:
Nicolas, does this fix the exit on solaris?
M +4 -4 kstcmd.cpp
--- trunk/extragear/graphics/kst/kst/extensions/js/kstcmd.cpp #489798:489799
@@ -32,6 +32,7 @@
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
+#include <sys/time.h>
#include <time.h>
#include <unistd.h>
@@ -53,8 +54,6 @@
rl_cleanup_after_signal();
exit(ERR_KST_TERMINATED);
}
-
- alarm(1);
}
@@ -68,9 +67,10 @@
kstName = ref.app();
signal(SIGALRM, &ping);
+ itimerval tv = { { 1, 0 }, { 1, 0 } };
+ itimerval old;
+ setitimer(ITIMER_REAL, &tv, &old);
- alarm(1);
-
for (;;) {
if (!client->registeredApplications().contains(kstName)) {
printf(_T("Kst application process has terminated.\n"));
More information about the Kst
mailing list