X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=blobdiff_plain;f=support%2Fsdk%2Fcpp%2Fsf%2Ftcpcomm.cpp;h=2e77a22cfca9efcf0b636fbe1f6856dcc5f7be9b;hp=27231a6202995e98778a9a5c56e1bde5dd3cbeca;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hpb=adf1de6c009d13b7b52e68535c63b28f59c97400 diff --git a/support/sdk/cpp/sf/tcpcomm.cpp b/support/sdk/cpp/sf/tcpcomm.cpp index 27231a62..2e77a22c 100644 --- a/support/sdk/cpp/sf/tcpcomm.cpp +++ b/support/sdk/cpp/sf/tcpcomm.cpp @@ -38,6 +38,7 @@ #include #include +#include #include #include #include @@ -582,7 +583,7 @@ void TCPComm::reportStatus(ostream& os) void TCPComm::stuffPipe() { char info = 'n'; - write(pipeWriteFD, &info, 1); + if(write(pipeWriteFD, &info, 1) != 1) DEBUG("TCPComm::stuffPipe : lokal pipe is broken"); } void TCPComm::clearPipe() {