Skip to content

Commit

Permalink
fix: partial stdout in pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
portasynthinca3 committed Nov 13, 2024
1 parent 857ad33 commit bc9223a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion furi/core/pipe.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,11 @@ void furi_pipe_free(FuriPipeSide* pipe) {
static void _furi_pipe_stdout_cb(const char* data, size_t size, void* context) {
furi_assert(context);
FuriPipeSide* pipe = context;
furi_check(furi_pipe_send(pipe, data, size, FuriWaitForever) == size);
while(size) {
size_t sent = furi_pipe_send(pipe, data, size, FuriWaitForever);
data += sent;
size -= sent;
}
}

static size_t _furi_pipe_stdin_cb(char* data, size_t size, FuriWait timeout, void* context) {
Expand Down

0 comments on commit bc9223a

Please sign in to comment.