summaryrefslogtreecommitdiffstats
path: root/watchquagga
diff options
context:
space:
mode:
authorajs <ajs>2005-02-17 21:11:58 +0100
committerajs <ajs>2005-02-17 21:11:58 +0100
commit518cde8d6ce0434b02bd5d7cf7e9627d57af6952 (patch)
tree2f4b607061eb01459523613c2f234d0361b760e6 /watchquagga
parent2005-02-17 Andrew J. Schorr <ajschorr@alumni.princeton.edu> (diff)
downloadfrr-518cde8d6ce0434b02bd5d7cf7e9627d57af6952.tar.xz
frr-518cde8d6ce0434b02bd5d7cf7e9627d57af6952.zip
2005-02-17 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* watchquagga.c: (handle_read) Use new ERRNO_IO_RETRY macro.
Diffstat (limited to 'watchquagga')
-rw-r--r--watchquagga/ChangeLog4
-rw-r--r--watchquagga/watchquagga.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/watchquagga/ChangeLog b/watchquagga/ChangeLog
index 79261c26a..7baf4b7cd 100644
--- a/watchquagga/ChangeLog
+++ b/watchquagga/ChangeLog
@@ -1,3 +1,7 @@
+2005-02-17 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
+
+ * watchquagga.c: (handle_read) Use new ERRNO_IO_RETRY macro.
+
2005-02-16 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* watchquagga.c: (try_connect) Use new set_nonblocking function instead
diff --git a/watchquagga/watchquagga.c b/watchquagga/watchquagga.c
index cde21b993..f49cb9277 100644
--- a/watchquagga/watchquagga.c
+++ b/watchquagga/watchquagga.c
@@ -1,5 +1,5 @@
/*
- $Id: watchquagga.c,v 1.10 2005/02/16 20:40:25 ajs Exp $
+ $Id: watchquagga.c,v 1.11 2005/02/17 20:11:58 ajs Exp $
Monitor status of quagga daemons and restart if necessary.
@@ -609,7 +609,7 @@ handle_read(struct thread *t_read)
{
char why[100];
- if ((errno == EINTR) || (errno == EAGAIN))
+ if (ERRNO_IO_RETRY(errno))
{
/* Pretend it never happened. */
SET_READ_HANDLER(dmn);