From owner-freebsd-current Thu Sep 30 12:44:40 1999 Delivered-To: freebsd-current@freebsd.org Received: from lamb.sas.com (lamb.sas.com [192.35.83.8]) by hub.freebsd.org (Postfix) with ESMTP id A2EF6152EB for ; Thu, 30 Sep 1999 12:44:27 -0700 (PDT) (envelope-from jwd@unx.sas.com) Received: from mozart (mozart.unx.sas.com [192.58.184.28]) by lamb.sas.com (8.9.3/8.9.1) with SMTP id PAA15931 for ; Thu, 30 Sep 1999 15:44:23 -0400 (EDT) Received: from bb01f39.unx.sas.com by mozart (5.65c/SAS/Domains/5-6-90) id AA13077; Thu, 30 Sep 1999 15:43:53 -0400 Received: (from jwd@localhost) by bb01f39.unx.sas.com (8.9.1/8.9.1) id PAA83056 for freebsd-current@freebsd.org; Thu, 30 Sep 1999 15:43:52 -0400 (EDT) (envelope-from jwd) From: "John W. DeBoskey" Message-Id: <199909301943.PAA83056@bb01f39.unx.sas.com> Subject: sysinstall/dist.c sigaction update patch To: freebsd-current@freebsd.org Date: Thu, 30 Sep 1999 15:43:52 -0400 (EDT) X-Mailer: ELM [version 2.4ME+ PL43 (25)] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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