Commit 01ad6a61 authored by Matteo Quintiliani's avatar Matteo Quintiliani

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
parent 000643f5
...@@ -148,8 +148,8 @@ architectures. ...@@ -148,8 +148,8 @@ architectures.
src/nmxptool --version src/nmxptool --version
nmxptool 1.2.1, Nanometrics tool nmxptool 1.2.2, Nanometrics tool
(Private Data Stream 1.4, Data Access Protocol 1.0) Private Data Stream 1.4, Data Access Protocol 1.0
Enabled features: libmseed YES, SeedLink YES, Earthworm YES. Enabled features: libmseed YES, SeedLink YES, Earthworm YES.
* libmseed, The Mini-SEED library - http://www.iris.edu/manuals/ * libmseed, The Mini-SEED library - http://www.iris.edu/manuals/
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* Istituto Nazionale di Geofisica e Vulcanologia - Italy * Istituto Nazionale di Geofisica e Vulcanologia - Italy
* quintiliani@ingv.it * 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) { ...@@ -1249,7 +1249,8 @@ static void ShutdownHandler(int sig) {
sigcondition = 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); nmxp_setsockopt_RCVTIMEO(naqssock, 1);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment