From 01ad6a6119ef156235104b16d37e2d493519ff28 Mon Sep 17 00:00:00 2001 From: Matteo Quintiliani Date: Tue, 1 Apr 2008 05:47:38 +0000 Subject: [PATCH] Fixed bug: If nmxptool is not receiving data then unblock recv() git-svn-id: file:///home/quintiliani/svncopy/nmxptool/trunk@1008 3cd66e75-5955-46cb-a940-c26e5fc5497d --- README | 4 ++-- src/nmxptool.c | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README b/README index 0629673..4ac2953 100644 --- a/README +++ b/README @@ -148,8 +148,8 @@ architectures. src/nmxptool --version - nmxptool 1.2.1, Nanometrics tool - (Private Data Stream 1.4, Data Access Protocol 1.0) + nmxptool 1.2.2, Nanometrics tool + Private Data Stream 1.4, Data Access Protocol 1.0 Enabled features: libmseed YES, SeedLink YES, Earthworm YES. * libmseed, The Mini-SEED library - http://www.iris.edu/manuals/ diff --git a/src/nmxptool.c b/src/nmxptool.c index 0e9a29b..817d4f3 100644 --- a/src/nmxptool.c +++ b/src/nmxptool.c @@ -7,7 +7,7 @@ * Istituto Nazionale di Geofisica e Vulcanologia - Italy * quintiliani@ingv.it * - * $Id: nmxptool.c,v 1.165 2008-03-31 11:31:10 mtheo Exp $ + * $Id: nmxptool.c,v 1.166 2008-04-01 05:47:38 mtheo Exp $ * */ @@ -1249,7 +1249,8 @@ static void ShutdownHandler(int sig) { sigcondition = sig; - if(params.timeoutrecv > 0 && naqssock > 0) { + /* If nmxptool is not receiving data then unblock recv() */ + if(naqssock > 0) { nmxp_setsockopt_RCVTIMEO(naqssock, 1); } -- 2.22.0