From owner-freebsd-hackers Sat Oct 16 21:32:51 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.xmission.com (mail.xmission.com [198.60.22.22]) by hub.freebsd.org (Postfix) with ESMTP id 4194814D94 for ; Sat, 16 Oct 1999 21:32:48 -0700 (PDT) (envelope-from wes@softweyr.com) Received: from [204.68.178.39] (helo=softweyr.com) by mail.xmission.com with esmtp (Exim 2.12 #2) id 11chzu-00025S-00; Sat, 16 Oct 1999 22:32:42 -0600 Message-ID: <38095168.FE3F1535@softweyr.com> Date: Sat, 16 Oct 1999 22:32:40 -0600 From: Wes Peters Organization: Softweyr LLC X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 3.1-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: Kevin Day Cc: Mark Newton , Dodge Ram , freebsd-hackers@FreeBSD.ORG Subject: Re: Handling segV's References: <199910160457.XAA21178@celery.dragondata.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Kevin Day wrote: > > I mmap() files in, then copy them to a device. This works great except when > someone tries to change that file during the copy. If the size of the file > shrinks, I'll SIGBUS or SIGSEGV when i try to touch past the new file size. > So, i setup a signal handler and longjmp into some recovery code. > > Perhaps there's a better way, but I don't consider this a bug really, and > i'll get a SEGV. :) MAP_PRIVATE? -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC wes@softweyr.com http://softweyr.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message