Add tcdrain() at end of patty_kiss_tnc_send()
This commit is contained in:
parent
eb04bc4bb5
commit
16179894d2
1 changed files with 4 additions and 0 deletions
|
@ -376,6 +376,10 @@ ssize_t patty_kiss_tnc_send(patty_kiss_tnc *tnc,
|
||||||
goto error_io;
|
goto error_io;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (tcdrain(tnc->fd) < 0) {
|
||||||
|
goto error_io;
|
||||||
|
}
|
||||||
|
|
||||||
return len;
|
return len;
|
||||||
|
|
||||||
error_io:
|
error_io:
|
||||||
|
|
Loading…
Add table
Reference in a new issue