From 24fbd1220dee2cd835344730fc6fff4423839978 Mon Sep 17 00:00:00 2001 From: Daniel Burrows Date: Fri, 4 Nov 2005 21:59:03 +0000 Subject: [aptitude @ Deal with the fact that the members of sigaction vary between platforms. (Closes: #337536)] --- src/pkg_ver_item.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/pkg_ver_item.cc') diff --git a/src/pkg_ver_item.cc b/src/pkg_ver_item.cc index b2b2c20a..49650795 100644 --- a/src/pkg_ver_item.cc +++ b/src/pkg_ver_item.cc @@ -736,11 +736,10 @@ bool pkg_ver_item::dispatch_key(const key &k, vs_tree *owner) struct sigaction oldact; struct sigaction act; + + memset(&act,0,sizeof(act)); act.sa_handler = SIG_DFL; - act.sa_sigaction = 0; sigemptyset(&act.sa_mask); - act.sa_flags = 0; - act.sa_restorer = 0; sigaction(SIGCONT, &act, &oldact); -- cgit v1.2.3