what a piece of shit?

This commit is contained in:
2025-07-23 22:52:54 +03:00
parent fd67d04ca2
commit 7e62c1d44a
8 changed files with 119 additions and 69 deletions

View File

@@ -541,6 +541,8 @@ static int wr(const data_t *out, data_t *in, int needeol){
if(b < 0) break; // nothing to read -> go out
in->buf[in->len++] = (uint8_t) b;
}
//DBG("Clear trashing input");
while(getmntbyte() > -1);
return TRUE;
}
@@ -606,11 +608,7 @@ static int bincmd(uint8_t *cmd, int len){
data_t d;
d.buf = cmd;
d.len = d.maxlen = len;
ret = wr(&d, &d, 0);
#ifdef EBUG
if(len == sizeof(SSscmd)) logscmd((SSscmd*)cmd);
else loglcmd((SSlcmd*)cmd);
#endif
ret = wr(&d, NULL, 0);
DBG("%s", ret ? "SUCCESS" : "FAIL");
rtn:
pthread_mutex_unlock(&mntmutex);