TIL: glibc writes internal error messages directly to /dev/tty (!) and when it can't it sometimes writes to STDERR_FILENO (probably, but not always, stderr). See https://github.com/lattera/glibc/blob/a2f34833b1042d5d8eeb263b4cf4caaea138c4ad/sysdeps/posix/libc_fatal.c#L62-L69 …. Takeaway #1: Never `close(STDERR_FILENO);` Instead reopen /dev/null using STDERR_FILENO.
-
-
Sadly POSIX always allocates the smallest unused fd. Small values were useful before poll, and reuse was useful before dup2. Though yeah if merely "POSIX-y" and can tolerate some breakage, that seems like a good plan.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
And if you're writing a daemon, aggressively assure they're open and harmless.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.