Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^3: can you autoflush a program in unix?

by ikegami (Patriarch)
on Oct 20, 2009 at 20:21 UTC ( [id://802312]=note: print w/replies, xml ) Need Help??


in reply to Re^2: can you autoflush a program in unix?
in thread can you autoflush a program in unix?

I don't understand. Why would one write a debugger rather than using an existing one, and what does that have to do with the topic at hand?
  • Comment on Re^3: can you autoflush a program in unix?

Replies are listed 'Best First'.
Re^4: can you autoflush a program in unix?
by Anonymous Monk on Oct 21, 2009 at 14:56 UTC
    Heh. I think he means use the Unix debugging API to, e.g. sniff for calls to fprintf() et al, and insert a fflush() call when that happens. Or something like that.

    Come to think of it, you could probably do what OP wants by writing an LD_PRELOAD library that overrides a large chunk of stdio... the caveats being that this is dark magic, ugly, will fail if the offending program is using its own buffered-output routines, and could conceivably make said program break in interesting ways.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://802312]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-25 08:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found