Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 01cac0d9 authored by deuce's avatar deuce

Properly handle write() failures on stdout

parent 0b8e0b9d
......@@ -2082,6 +2082,8 @@ tODResult ODComCarrier(tPortHandle hPort, BOOL *pbIsCarrier)
break;
}
#endif
#ifdef INCLUDE_STDIO_COM
case kComMethodStdIO:
{
sigpending(&sigs);
......@@ -2091,6 +2093,7 @@ tODResult ODComCarrier(tPortHandle hPort, BOOL *pbIsCarrier)
*pbIsCarrier = TRUE;
break;
}
#endif
default:
/* If we get here, then the current serial I/O method is not */
......@@ -2953,7 +2956,8 @@ keep_going:
#ifdef INCLUDE_STDIO_COM
case kComMethodStdIO:
{
write(1,&btToSend,1,0);
if((write(1,&btToSend,1,0))!=1)
return(kODRCGeneralFailure);
break;
}
#endif
......
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