All of lore.kernel.org
 help / color / mirror / Atom feed
From: ych43 <ych43@student.canterbury.ac.nz>
To: linux-kernel@vger.kernel.org
Subject: process with socket
Date: Mon, 25 Oct 2004 23:31:55 +1300	[thread overview]
Message-ID: <417B54C1@webmail> (raw)

Hi,
 I am working on UNIX Network Programming (sockets programming in C). My 
problem is I do not know how to identify whether a process in Linux kernel has 
a socket. Because so many different processes in Linux kernel are running, a 
process forks many child processes and forms a process tree. I want to 
identify a process that has socket and saves state data about it. Then saves 
the same data about his parent process and walks up the process tree by 
repeating this procedure until a process with PID 0 is reached. But I do not 
know how to identify if a process has a socket.


             reply	other threads:[~2004-10-25 10:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-25 10:31 ych43 [this message]
2004-10-25 10:52 ` process with socket 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=417B54C1@webmail \
    --to=ych43@student.canterbury.ac.nz \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.