> > > > 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 longjm
Kevin Day wrote:
>
> >
> > 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.
>
>
> 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
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 in
>
> Dodge Ram wrote:
>
> > Also, is there a list of reasons for a SIGSEGV ?
>
> Only one: "Your program is buggy" :-)
>
>- mark
I've actually got a SIGSEGV/SIGBUS handler in one of my programs that I
needed, and couldn't figure a way around...
I mmap() files in, then copy them to a dev
Dodge Ram wrote:
> Also, is there a list of reasons for a SIGSEGV ?
Only one: "Your program is buggy" :-)
- mark
Mark Newton Email: [EMAIL PROTECTED] (W)
Network Engineer Email: [EMAIL PROTECTED] (H)
Internode Systems Pty Ltd
DDD somehow manages to do this, however, even if you tell it to ignore it
and continue it will almost invariably segV again shortly thereafter.
-Kip
On Fri, 15 Oct 1999, Alec Kloss wrote:
> Dodge Ram said:
>
> > Hi,
> >
> > I am looking at ways to
a list of reasons for a SIGSEGV ?
thanks and regards,
ramesh
>From: Alec Kloss <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED] (Dodge Ram)
>CC: [EMAIL PROTECTED]
>Subject: Re: Handling segV's
>Date: Fri, 15 Oct 1999 11:23:37 -0500 (CDT)
>
>Dodge Ram said:
>
>
Dodge Ram said:
> Hi,
>
> I am looking at ways to handle segV's gracefully without
> letting a process die. I am aware of the siglongjmp() call and don't
> know if that is the only way to handle segV's
>
> Any pointers on how to gracefully (?) handle segV and not
> letting the proce
On Fri, 15 Oct 1999, Dodge Ram wrote:
> Hi,
>
> I am looking at ways to handle segV's gracefully without
> letting a process die. I am aware of the siglongjmp() call and don't
> know if that is the only way to handle segV's
>
> Any pointers on how to gracefully (?) handle segV and no
Hi,
I am looking at ways to handle segV's gracefully without
letting a process die. I am aware of the siglongjmp() call and don't
know if that is the only way to handle segV's
Any pointers on how to gracefully (?) handle segV and not
letting the process die will be of great help
11 matches
Mail list logo