[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r6739 - GNUnet/src/util/network
From: |
gnunet |
Subject: |
[GNUnet-SVN] r6739 - GNUnet/src/util/network |
Date: |
Mon, 21 Apr 2008 00:38:18 -0600 (MDT) |
Author: grothoff
Date: 2008-04-21 00:38:18 -0600 (Mon, 21 Apr 2008)
New Revision: 6739
Modified:
GNUnet/src/util/network/io.c
Log:
abort on CTRL-C
Modified: GNUnet/src/util/network/io.c
===================================================================
--- GNUnet/src/util/network/io.c 2008-04-21 02:53:24 UTC (rev 6738)
+++ GNUnet/src/util/network/io.c 2008-04-21 06:38:18 UTC (rev 6739)
@@ -227,7 +227,11 @@
GNUNET_GE_ASSERT (NULL, s->checksum == -s->handle);
if ((ret == (size_t) - 1) &&
(errno == EINTR) && (0 != (nc & GNUNET_NC_IGNORE_INT)))
- continue;
+ {
+ if (GNUNET_shutdown_test() == GNUNET_YES)
+ return GNUNET_SYSERR;
+ continue;
+ }
if ((ret == (size_t) - 1) || (ret > max - pos))
{
if (errno == EINTR)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r6739 - GNUnet/src/util/network,
gnunet <=