pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/emulators/gxemul emulators/gxemul: Fix console data loss



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8a8c47a470a4
branches:  trunk
changeset: 330454:8a8c47a470a4
user:      gson <gson%pkgsrc.org@localhost>
date:      Sun Mar 03 10:41:28 2019 +0000

description:
emulators/gxemul: Fix console data loss

Set the SA_RESTART flag on SIGALRM so that it will not interrupt
writes to the console causing loss of console data.  Bump PKGREVISION.

diffstat:

 emulators/gxemul/Makefile                             |   3 ++-
 emulators/gxemul/distinfo                             |   3 ++-
 emulators/gxemul/patches/patch-src_old__main_timer.cc |  15 +++++++++++++++
 3 files changed, 19 insertions(+), 2 deletions(-)

diffs (45 lines):

diff -r 5ef71693dece -r 8a8c47a470a4 emulators/gxemul/Makefile
--- a/emulators/gxemul/Makefile Sun Mar 03 10:36:14 2019 +0000
+++ b/emulators/gxemul/Makefile Sun Mar 03 10:41:28 2019 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.62 2019/01/04 13:35:16 ryoon Exp $
+# $NetBSD: Makefile,v 1.63 2019/03/03 10:41:28 gson Exp $
 
 DISTNAME=      gxemul-0.6.1
+PKGREVISION=   1
 CATEGORIES=    emulators
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=gxemul/}
 
diff -r 5ef71693dece -r 8a8c47a470a4 emulators/gxemul/distinfo
--- a/emulators/gxemul/distinfo Sun Mar 03 10:36:14 2019 +0000
+++ b/emulators/gxemul/distinfo Sun Mar 03 10:41:28 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.55 2019/01/04 13:35:16 ryoon Exp $
+$NetBSD: distinfo,v 1.56 2019/03/03 10:41:28 gson Exp $
 
 SHA1 (gxemul-0.6.1.tar.gz) = 150e495e91a968a49ffc7fe2390c3edff100508d
 RMD160 (gxemul-0.6.1.tar.gz) = 0434bff07970d8828531d222cc8b95c64c2d62f1
@@ -18,3 +18,4 @@
 SHA1 (patch-src_include_mips_cpu_types.h) = 04fff50fad3e619e7e0eeb8bf17a79edd18b2147
 SHA1 (patch-src_include_refcount__ptr.h) = 6c8742b199801c1db906d4856f6f5f01a0f25fe0
 SHA1 (patch-src_machines_machine__pmax.cc) = ed3fba7eacb593cbba082a6d8d8ec823bf90162f
+SHA1 (patch-src_old__main_timer.cc) = a6234d80f28611a5be18b917a4249b8530b433bc
diff -r 5ef71693dece -r 8a8c47a470a4 emulators/gxemul/patches/patch-src_old__main_timer.cc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/gxemul/patches/patch-src_old__main_timer.cc     Sun Mar 03 10:41:28 2019 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_old__main_timer.cc,v 1.1 2019/03/03 10:41:28 gson Exp $
+
+Set the SA_RESTART flag on SIGALRM so that it will not interrupt
+writes to the console causing loss of console data.
+
+--- src/old_main/timer.cc.orig 2018-12-07 06:29:22.000000000 +0000
++++ src/old_main/timer.cc
+@@ -229,6 +229,7 @@ void timer_start(void)
+ 
+       memset(&saction, 0, sizeof(saction));
+       saction.sa_handler = timer_tick;
++      saction.sa_flags = SA_RESTART;
+ 
+       sigaction(SIGALRM, &saction, NULL);
+ 



Home | Main Index | Thread Index | Old Index