Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Oct 1999 22:32:40 -0600
From:      Wes Peters <wes@softweyr.com>
To:        Kevin Day <toasty@dragondata.com>
Cc:        Mark Newton <newton@internode.com.au>, Dodge Ram <gupz@hotmail.com>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: Handling segV's
Message-ID:  <38095168.FE3F1535@softweyr.com>
References:  <199910160457.XAA21178@celery.dragondata.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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