mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Question regarding /proc/<pid>/fd and pipes
@ 2006-02-08  7:27 John Schmerge
  0 siblings, 0 replies; 5+ messages in thread
From: John Schmerge @ 2006-02-08  7:27 UTC (permalink / raw)
  To: linux-kernel

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-02-09 17:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <5DRW7-322-1@gated-at.bofh.it>
2006-02-08 14:45 ` Question regarding /proc/<pid>/fd and pipes Bodo Eggert
2006-02-09  3:22   ` John Schmerge
2006-02-09  9:02     ` Bodo Eggert
2006-02-09 17:21   ` Jan Engelhardt
2006-02-08  7:27 John Schmerge

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®