60 reputation
17
bio website
location
age 32
visits member for 5 years
seen Mar 18 at 8:23

Jul
25
awarded  Popular Question
Oct
17
awarded  Notable Question
May
24
accepted How do you force a process to flush the data written to an open file descriptor under Linux?
May
24
comment How do you force a process to flush the data written to an open file descriptor under Linux?
That's an interesting idea - overriding what fopen does. I will see if I can give it a try and trick the binary to use my library calls.
Mar
25
accepted PHP xpath: extract all nodes, even with namespaces
Mar
22
answered PHP xpath: extract all nodes, even with namespaces
Mar
22
asked PHP xpath: extract all nodes, even with namespaces
Mar
7
awarded  Popular Question
Jan
9
comment How do you force a process to flush the data written to an open file descriptor under Linux?
I confirm that running the sync command has no effect on the log's flush policy. The new content still gets flushed to file only when reaching a certain size... Any suggestions?
Jan
9
comment How do you force a process to flush the data written to an open file descriptor under Linux?
It shouldn't be filesystem cache. the log is written to a ramdrive (/tmp is a ramdisk). I will try running sync (and report back), but I thought it would only flush filesystem buffers to disk, not program buffers...
Jan
9
comment How do you force a process to flush the data written to an open file descriptor under Linux?
Something like sync(), yes, but the problem is, in order to use it I would have to change the process' source code and add calls to sync() when adding data to the log file. This is something I can't do, because I don't have the sources. Can I call sync() on a file descriptor opened by a different process? If so, how?
Jan
9
asked How do you force a process to flush the data written to an open file descriptor under Linux?
Apr
30
awarded  Supporter
Apr
24
accepted iptables change destination IP without DNAT
Jan
3
awarded  Popular Question
Mar
19
answered iptables change destination IP without DNAT
Mar
19
asked iptables change destination IP without DNAT
Nov
19
awarded  Scholar
Nov
19
comment Configure X server for a huge resolution (9000x4000)
Yes, it worked beautifully! Thank you for your help!
Nov
19
accepted Configure X server for a huge resolution (9000x4000)