mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Magnus Naeslund(w)" <mag@fbab.net>
To: <linux-kernel@vger.kernel.org>
Subject: linux-2.4.19-pre6aa1 sendfile problem
Date: Sun, 18 Aug 2002 23:43:25 +0200 (CEST)	[thread overview]
Message-ID: <1678.212.151.58.193.1029707005.squirrel@mail2.fbab.net> (raw)

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?

Regards

Magnus Naeslund

no .sig




                 reply	other threads:[~2002-08-18 21:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1678.212.151.58.193.1029707005.squirrel@mail2.fbab.net \
    --to=mag@fbab.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®