Skip to contentSkip to conversation

sendfile() & unlink()

DISCUSSION Eric Lemoine 2 participants 2 messages May 1, 2003

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi

What happens when unlink()ing a file that has just been sendfile()d? Is there any guarantee that the file remains in the buffer cache while TCP completes the xmit?

Thx.

Signature · 1 line
Eric
#1 lore raw

Unlinking an open tmp file (so it doesn't show up in a directory listing ) is a pretty common thing to do on Irix. I sure hope one can do that on linux :)

Quoted 8 lines · Eric Lemoine

Hi

What happens when unlink()ing a file that has just been sendfile()d? Is there any guarantee that the file remains in the buffer cache while TCP completes the xmit?

Thx.

Signature · 6 lines
Steve Modica
work: 651-683-3224
mobile: 651-261-3201
Manager - Networking Drivers Group
"Give a man a fish, and he will eat for a day, hit him with a fish and
he leaves you alone" - me