| Server IP : 82.208.35.60 / Your IP : 216.73.216.168 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/graphics/klatexformula/files/ |
Upload File : |
--- src/main.cpp.orig 2017-02-07 07:22:42 UTC
+++ src/main.cpp
@@ -272,8 +272,8 @@ void signal_act(int sig)
fprintf(ftty, "Interrupt\n");
if (ftty != stderr) fprintf(stderr, "*** Interrupt\n");
- static long last_sigint_time = 0;
- long curtime;
+ static time_t last_sigint_time = 0;
+ time_t curtime;
time(&curtime);
bool isInsisted = (curtime - last_sigint_time <= 2); // re-pressed Ctrl-C after less than 2 secs
if (!isInsisted && qApp != NULL) {