|
@@ -227,8 +227,8 @@ _ssize_t _read_r(struct _reent *ptr, int fd, void *buf, size_t nbytes)
|
|
_ssize_t rc;
|
|
_ssize_t rc;
|
|
if (libc_stdio_get_console() < 0 && fd == STDIN_FILENO)
|
|
if (libc_stdio_get_console() < 0 && fd == STDIN_FILENO)
|
|
{
|
|
{
|
|
- LOG_E("invoke standard input before initializing libc");
|
|
|
|
- return -1;
|
|
|
|
|
|
+ LOG_W("Do not invoke standard input before initializing libc");
|
|
|
|
+ return 0;
|
|
}
|
|
}
|
|
rc = read(fd, buf, nbytes);
|
|
rc = read(fd, buf, nbytes);
|
|
return rc;
|
|
return rc;
|
|
@@ -303,8 +303,8 @@ _ssize_t _write_r(struct _reent *ptr, int fd, const void *buf, size_t nbytes)
|
|
_ssize_t rc;
|
|
_ssize_t rc;
|
|
if (libc_stdio_get_console() < 0 && fd == STDOUT_FILENO)
|
|
if (libc_stdio_get_console() < 0 && fd == STDOUT_FILENO)
|
|
{
|
|
{
|
|
- LOG_E("invoke standard output before initializing libc");
|
|
|
|
- return -1;
|
|
|
|
|
|
+ LOG_W("Do not invoke standard output before initializing libc");
|
|
|
|
+ return 0;
|
|
}
|
|
}
|
|
rc = write(fd, buf, nbytes);
|
|
rc = write(fd, buf, nbytes);
|
|
return rc;
|
|
return rc;
|