Luke Dashjr 10 years ago
parent
commit
4cfee24269
1 changed files with 1 additions and 1 deletions
  1. 1 1
      driver-icarus.c

+ 1 - 1
driver-icarus.c

@@ -302,7 +302,7 @@ int icarus_write(const char * const repr, int fd, const void *buf, size_t bufLen
 	
 	
 	ret = write(fd, buf, bufLen);
 	ret = write(fd, buf, bufLen);
 	if (unlikely(ret != bufLen))
 	if (unlikely(ret != bufLen))
-		return 1;
+		return ret ?: -666;
 
 
 	return 0;
 	return 0;
 }
 }