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

Bug#46749: dpkg: clear SA_INTERRUPT



Package: dpkg
Version: 1.4.1.11
Severity: important

Hello,

this is one of the many patches needed to get dpkg working on the Hurd. It
is by no means release critical for Linux.

SA_INTERRUPT is only available on Linux. We take a look at asm/signal.h
and see:

 * SA_INTERRUPT is a no-op, but left due to historical reasons. Use the
 * SA_RESTART flag to get restarting signals (which were the default long ago)

Thanks,
Marcus

--- ../../official/dpkg-1.4.1.13/dselect/baselist.cc	Sun Nov  1 17:04:21 1998
+++ dselect/baselist.cc	Wed Oct  6 02:45:04 1999
@@ -77,7 +77,7 @@
   memset(&nsigact,0,sizeof(nsigact));
   nsigact.sa_handler= sigwinchhandler;
   sigemptyset(&nsigact.sa_mask);
-  nsigact.sa_flags= SA_INTERRUPT;
+  nsigact.sa_flags= SA_RESTART;
   if (sigaction(SIGWINCH,&nsigact,0)) ohshite("failed to set new SIGWINCH sigact");
 }
 


-- System Information
Debian Release: potato
Kernel Version: Linux ulysses 2.2.12 #7 Mon Sep 27 01:09:52 CEST 1999 i586 unknown

Versions of the packages dpkg depends on:
hi  libc6           2.1.2-0pre11   GNU C Library: Shared libraries and timezone
hi  libstdc++2.10   2.95.2-0pre2   The GNU stdc++ library
ii  libncurses4     4.2-3.3        Shared libraries for terminal handling


Reply to: