Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:26
erlang
3471-erts-Expand-erlang-display_string-error-me...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 3471-erts-Expand-erlang-display_string-error-message.patch of Package erlang
From b9d46d798e0d0e9483021ac3983614198c421e51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Backstr=C3=B6m?= <lukas@erlang.org> Date: Thu, 12 Sep 2024 12:20:55 +0200 Subject: [PATCH] erts: Expand erlang:display_string error message --- erts/emulator/beam/bif.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/erts/emulator/beam/bif.c b/erts/emulator/beam/bif.c index 9d6fd75807..9b3f04f436 100644 --- a/erts/emulator/beam/bif.c +++ b/erts/emulator/beam/bif.c @@ -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; } -- 2.43.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor