From: Arun Prakash Jana Date: Tue, 11 May 2021 10:53:06 +0000 (+0530) Subject: musl libc: fix run cmd prompt message X-Git-Tag: v4.1~82 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=de80bba9dbddb77cc541b2c39059f588a891770f;p=nnn.git musl libc: fix run cmd prompt message --- diff --git a/src/nnn.c b/src/nnn.c index 79826c18..1cdc20d8 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -2064,10 +2064,9 @@ static int spawn(char *file, char *arg1, char *arg2, uchar_t flag) DPRINTF_D(pid); if ((flag & F_CONFIRM) || ((flag & F_CHKRTN) && retstatus)) { - printf("%s", messages[MSG_CONTINUE]); -#ifndef NORL - fflush(stdout); -#endif + status = write(STDOUT_FILENO, messages[MSG_CONTINUE], + xstrlen(messages[MSG_CONTINUE])); + (void)status; while (getchar() != '\n') {}; }