mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: John Schmerge <schmerge@speakeasy.net>
To: linux-kernel@vger.kernel.org
Subject: Question regarding /proc/<pid>/fd and pipes
Date: Tue, 7 Feb 2006 23:27:01 -0800 (PST)	[thread overview]
Message-ID: <Pine.LNX.4.58.0602072302480.29064@shell3.speakeasy.net> (raw)

Hi all,

  I'm attempting to track down a spooky problem with some code that I've
written (running under the 2.6.11.12 kernel) and am wondering if there's a
way to track (via /proc) both ends of an open pipe that was created with a
pipe(2) system call... It appears that I've got a bunch of spawned
processes stuck in some kind of sleep caused by a read(2) on the
read-end of a pipe and would like to eliminate the possibility that I've
done something truly bone-headed in my code like leaving the write-end
of the pipe open in another process. (I don't think I did, but want to
be sure :).

  I know that the symlinks in the /proc/<pid>/fd directory point to
bogus filenames for pipes (i.e. 'pipe:[64682]') and am wondering if
every process that reads and writes from that pipe will share the same
bogus symlink name.

  In essence, I'm wondering if there's any way to list all of the pid's
of processes using an anonomous pipe.

  Please CC me on any answers.

  Thanks,
  John

             reply	other threads:[~2006-02-08  7:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-08  7:27 John Schmerge [this message]
     [not found] <5DRW7-322-1@gated-at.bofh.it>
2006-02-08 14:45 ` Bodo Eggert
2006-02-09  3:22   ` John Schmerge
2006-02-09  9:02     ` Bodo Eggert
2006-02-09 17:21   ` Jan Engelhardt

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=Pine.LNX.4.58.0602072302480.29064@shell3.speakeasy.net \
    --to=schmerge@speakeasy.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®