Files
xserver/os
Enrico Weigelt, metux IT consult ed289f734b os: don't ever try to mess with stderr / fd 2
1. We've got some ancient code here that's trying to open stderr (fd 2) itself,
   in case it cannot write there for strange reason. POSIX defines the three
   standard streams (and associated fd's) to be available on program startup
   (when main() is reached). One needs a sledgehammer for breaking a system
   so much that this doesn't work anymore - even calling a program directly
   from /etc/inittab does provide them.

2. The current implementation is not POSIX conformant - it should use freopen(),
   and it leaks FILE structure.

3. stderr is set to buffered mode, quite the opposite of POSIX - it states
   stderr shall NOT be buffered. Simple and obvious reason: not risking vital
   error information getting lost.

4. Placing The logfile in /usr/adm - an ancient, pre-FHS, directory that rarely
   exists on modern systems. That's even hardcoded, instead of derived from
   build-time given installation pathes.

Conculusio: obsolete and broken, thus removing it.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-12 16:32:00 +02:00
..
2025-02-18 10:53:44 +00:00
2024-04-15 19:54:34 +00:00
2024-10-10 13:38:31 +00:00
2024-10-10 13:38:31 +00:00
2024-05-08 09:37:35 +02:00
2024-03-09 17:34:51 +00:00
2025-02-18 11:17:40 +00:00
2024-10-10 13:38:31 +00:00
2025-02-18 10:53:44 +00:00
2025-02-28 12:51:44 +01:00
2024-10-10 13:38:31 +00:00
2025-06-12 16:31:57 +02:00
2024-10-10 13:38:31 +00:00
2016-07-21 15:04:47 -04:00
2024-10-10 13:38:31 +00:00
2024-10-10 13:38:31 +00:00
2024-10-10 13:38:31 +00:00
2024-10-10 13:38:31 +00:00
2024-10-10 13:38:31 +00:00
2024-10-10 13:38:31 +00:00
2025-06-12 16:31:57 +02:00
2025-02-23 17:46:13 +00:00
2024-10-10 13:38:31 +00:00
2024-02-25 11:55:56 +01:00
2024-10-10 13:38:31 +00:00
2024-10-10 13:38:31 +00:00
2024-10-10 13:38:31 +00:00
2024-03-03 23:11:05 +00:00
2024-10-10 13:38:31 +00:00