linux-2.4.19-pre6aa1 sendfile problem

From: Magnus Naeslund(w) (
Date: Sun Aug 18 2002 - 16:43:25 EST

Short story:

sendfile() seems to (sometimes) exit my app using linux-2.4.19-pre6aa1 on
alpha (EV56).

Short questions:

Do you know of any trouble that could cause this, like is this a known
bug in kernel X.Y.Z ?

Long story:

I have a server process that's started in a inetd kind of way.
It uses sendfile for sending entire small files (~230-250kb a pice).
Recently i added some accounting using shared memory.
It failed miserably because it didn't always exit via the cleanup
functions (i use atexit() and signal() to trap that exit).I hunted for bugs in my code for some hours, then i noticed that when i
logged "before sendfile" and "after sendfile" sometimes only the"before" thing showed up.

So to help this i'll probably do a wrapper for sendfile using std write(),
but i sure want to use sendfile if i can.

Does anyone have any ideas about this?


Magnus Naeslund

no .sig

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Fri Aug 23 2002 - 22:00:15 EST