Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Sep 1999 15:43:52 -0400 (EDT)
From:      "John W. DeBoskey" <jwd@unx.sas.com>
To:        freebsd-current@freebsd.org
Subject:   sysinstall/dist.c  sigaction update patch
Message-ID:  <199909301943.PAA83056@bb01f39.unx.sas.com>

next in thread | raw e-mail | index | archive | help
hi,

   we're working on a small mod to sysinstall, and we're seeing
the following with the unmodified source since the signal code
going in:

cc -O -pipe -Wall -I/usr/src/release/sysinstall/../../gnu/lib/libdialog -I/usr/obj/usr/src/release/sysinstall -I/usr/src/release/sysinstall/../../sys   -c /usr/src/release/sysinstall/dist.c
/usr/src/release/sysinstall/dist.c: In function `distExtract':
/usr/src/release/sysinstall/dist.c:537: incompatible types in assignment
*** Error code 1

  Patch for new signalling code is below:

Index: dist.c
===================================================================
RCS file: /mirror/ncvs/src/release/sysinstall/dist.c,v
retrieving revision 1.150
diff -u -r1.150 dist.c
--- dist.c      1999/09/19 22:30:38     1.150
+++ dist.c      1999/09/30 19:45:59
@@ -534,7 +534,7 @@
     /* Make ^C fake a sudden timeout */
     new.sa_handler = handle_intr;
     new.sa_flags = 0;
-    new.sa_mask = 0;
+    (void)sigemptyset(&new.sa_mask);
     sigaction(SIGINT, &new, &old);
 
     /* Loop through to see if we're in our parent's plans */
Index: media.c
===================================================================
RCS file: /mirror/ncvs/src/release/sysinstall/media.c,v
retrieving revision 1.102
diff -u -r1.102 media.c
--- media.c     1999/09/02 00:51:13     1.102
+++ media.c     1999/09/30 19:47:37
@@ -677,7 +677,7 @@
     /* Make ^C abort the current transfer rather than the whole show */
     new.sa_handler = handle_intr;
     new.sa_flags = 0;
-    new.sa_mask = 0;
+    (void)sigemptyset(&new.sa_mask);
     sigaction(SIGINT, &new, &old);
 
     while ((i = fread(buf, 1, BUFSIZ, fp)) > 0) {


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199909301943.PAA83056>