musl libc: fix run cmd prompt message

This commit is contained in:
Arun Prakash Jana 2021-05-11 16:23:06 +05:30
parent 466d138cc7
commit de80bba9db
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -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') {};
}