Skip to content

Commit

Permalink
Merge branch 'lukas/erts/fix-display_string-error-message' into maint
Browse files Browse the repository at this point in the history
* lukas/erts/fix-display_string-error-message:
  erts: Expand erlang:display_string error message
  • Loading branch information
garazdawi committed Oct 17, 2024
2 parents 8ddeb84 + b9d46d7 commit 8747ca4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions erts/emulator/beam/bif.c
Original file line number Diff line number Diff line change
Expand Up @@ -3953,8 +3953,10 @@ BIF_RETTYPE display_string_2(BIF_ALIST_2)
if (ERTS_IS_ATOM_STR("stdin", BIF_ARG_1)) {
for (int i = 0; i < len; i++) {
if (ioctl(fd, TIOCSTI, str+i) < 0) {
fprintf(stderr,"failed to write to %s (%s)\r\n", "/proc/self/fd/0",
strerror(errno));
fprintf(stderr,"failed to write to %s (%s)\r\n"
"to solve this you may need to enable legacy tiocsti\r\n"
" sudo sysctl -w dev.tty.legacy_tiocsti=1\r\n",
"/proc/self/fd/0", strerror(errno));
close(fd);
goto error;
}
Expand Down

0 comments on commit 8747ca4

Please sign in to comment.