Catching libc error messages, redirecting from /dev/tty

橙三吉。 提交于 2019-11-29 10:16:21

I found an UNDOCUMENTED (not in the glibc documentation!) answer by inspecting the libc source code, libc_fatal.c.

Set the following environment variable to anything

LIBC_FATAL_STDERR_=1

to cause libc to write to stderr instead of /dev/tty.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!