Update of /cvsroot/fink/experimental/dmacks/finkinfo
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19186

Modified Files:
        dpkg.info dpkg.patch 
Log Message:
block SIGINT


Index: dpkg.patch
===================================================================
RCS file: /cvsroot/fink/experimental/dmacks/finkinfo/dpkg.patch,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- dpkg.patch  14 Mar 2005 22:12:44 -0000      1.4
+++ dpkg.patch  17 Mar 2005 01:44:45 -0000      1.5
@@ -2466,3 +2466,23 @@
    for (packageslump= file->packages; packageslump; packageslump= 
packageslump->more) {
      debug(dbg_veryverbose, "isdirectoryinuse packageslump %s ...",
            packageslump->pkgs[0] ? packageslump->pkgs[0]->name : "<none>");
+diff -ur dpkg-1.10.21.orig/main/main.c dpkg-1.10.21/main/main.c
+--- dpkg-1.10.21.orig/main/main.c      Sat Oct 25 16:03:21 2003
++++ dpkg-1.10.21/main/main.c   Wed Mar 16 20:29:34 2005
+@@ -704,6 +704,16 @@
+   jmp_buf ejbuf;
+   static void (*actionfunction)(const char *const *argv);
+ 
++/* FINK LOCAL begin */
++  sigset_t mask_sigint;
++  sigemptyset(&mask_sigint);
++  sigaddset(&mask_sigint,SIGINT);
++  if(sigprocmask(SIG_BLOCK,&mask_sigint,NULL)) {
++    perror("dpkg: couldn't set block SIGINT");
++    exit(2);
++  }
++/* FINK LOCAL end */
++
+   standard_startup(&ejbuf, argc, &argv, DPKG, 1, cmdinfos);
+   if (!cipaction) badusage(_("need an action option"));
+ 

Index: dpkg.info
===================================================================
RCS file: /cvsroot/fink/experimental/dmacks/finkinfo/dpkg.info,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- dpkg.info   17 Mar 2005 01:28:14 -0000      1.5
+++ dpkg.info   17 Mar 2005 01:44:45 -0000      1.6
@@ -52,6 +52,8 @@
 Previous versions by Christoph Pfisterer.
 
 Patched to not remove Darwin's system-critical symlinks (/etc /tmp /var)
+
+Patched to block SIGINT so users don't get out-of-sync dpkg databases
 <<
 #
 PostInstScript: <<



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to