Creideiki added the comment:
I ran this program:
#include
#include
#include
#include
void print(const char *s, size_t l)
{
errno = 0;
fwrite(s, l, 1, stdout);
int saved_errno = errno;
fprintf(stderr,
"After \"%s\": ferror(): %i, strerror(): %s\n
Creideiki added the comment:
Hmm. Yes and no; you seem to be correct in that the problem is on the libc
level, but Python definitely does something special.
By the way, this is glibc 2.26.
I tried this C program:
#include
#include
int main()
{
usleep(5 * 1000 * 1000);
fwrite("
New submission from Creideiki :
This is Python 2.7.14 on Gentoo Linux.
I ran into an issue where a program crashes if I run it from a terminal, put it
in the background, and then close the terminal too soon. Upstream bug report:
https://github.com/micahflee/torbrowser-launcher/issues/298
It