[lug] Is there a way to get output once it's been redirected to /dev/null?
Zan Lynx
zlynx at acm.org
Fri Jun 25 17:10:38 MDT 2010
On 6/25/10 5:07 PM, Jeffrey Haemer wrote:
> Jon & Jon/Zan,
>
> Nicely diagnosed. It doesn't write for over a minute. If I either
> throw in an fflush(stdout), or change it to fprintf(stderr, "hello,
> world\n") [ stderr is unbuffered by default ], I see 'em all.
>
> My developer can't change the source of the running, misbehaving,
> program, but he can just be patient -- though not, it seems, by
> emulating me. :-)
Well, if you are using ptrace hacks to redirect the output anyway then
you could use ptrace hacks to force a stderr flush whenever you wanted
to see up-to-the-second data.
--
Zan Lynx
zlynx at acm.org
"Knowledge is Power. Power Corrupts. Study Hard. Be Evil."
More information about the LUG
mailing list