Comment on Opening /proc/self/fd/1 is not the same as dup(1)Comments−kazinator2yObscure fact #37: Glibc's implementation of freopen opens /proc/self/fd/<n>, when the pathname is null, e.g.: freopen(NULL, "w", stdout);
Comments
Obscure fact #37: Glibc's implementation of freopen opens /proc/self/fd/<n>, when the pathname is null, e.g.: