This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: Slightly offtpic: why svn stubbornly refuses to listen to ctrl-c?!?
- From: "Paul Koning" <Paul_Koning at Dell dot com>
- To: "Dave Korn" <dave dot korn dot cygwin at googlemail dot com>, "Paolo Carlini" <paolo dot carlini at oracle dot com>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Fri, 15 Jan 2010 10:36:18 -0500
- Subject: RE: Slightly offtpic: why svn stubbornly refuses to listen to ctrl-c?!?
- References: <4B50711D.3030506@oracle.com> <4B508E11.5070702@gmail.com>
> Paolo Carlini wrote:
> > Hi,
> >
> > I mean, why a well designed application should refuse to listen to
> > ctrl-c when something goes wrong? Why every time for some reason it
> gets
> > stuck, I have to kill it from another shell? That's definitely
> annoying.
> >
> > Paolo.
> ...
> Looks like there's a read loop in libapr that is deliberately
> designed to
> continue if it gets EINTR. Perhaps a somewhat crude mechanism for
> guaranteeing atomicity/preventing corrupted sandbox?
Not just crude, but wrong. You can't get atomicity (or rather,
transactional integrity) that way, because blocking ^C doesn't block
SIGKILL, or panics, or power failures, or (in the case of operations
involving the server) network failures.
paul