Hi, I noticed this on a Linux machine but I hope the mods won't shoot me down in flames because I imagine it's equally relevant on a FreeBSd or any other Unix. (Im writing a cross platform debugger .)
I was debugging a program ("date" from GNU CoreUtils) and the output suddenly stopped. Examining the source I found
Which is fairly self explanatory. Is this commonly done?
What is it for? I'm guessing it's so that any program reading date's output will see an EOF? Just curious.
Thanks.
I was debugging a program ("date" from GNU CoreUtils) and the output suddenly stopped. Examining the source I found
Code:
atexit(close_stdout)
What is it for? I'm guessing it's so that any program reading date's output will see an EOF? Just curious.
Thanks.