From: Dave McCracken <dmccr@us.ibm.com>
To: george anzinger <george@mvista.com>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] 2.4.9 Make thread group id visible in/proc/<pid>/status
Date: Mon, 20 Aug 2001 15:03:25 -0500 [thread overview]
Message-ID: <59650000.998337805@baldur> (raw)
In-Reply-To: <3B816A65.5BA70FFF@mvista.com>
In-Reply-To: <E15Yrlh-0006JF-00@the-village.bc.nu> <26210000.998324773@baldur> <3B815BFD.80D62209@mvista.com> <23580000.998333953@baldur> <3B816A65.5BA70FFF@mvista.com>
--On Monday, August 20, 2001 12:52:05 -0700 george anzinger
<george@mvista.com> wrote:
> But this (signal_struct) does not share the signals, just the
> infrastructure. I believe the thread standard defines some signals that
> are to be delivered to a "thread leader" regardless of what actually
> caused the signal. Thus for these signals a separate mask & signal
> queue seems in order. I suppose one could use the union of all the
> thread masks or some such, but this seems like a lot of overhead. Also
> need to introduce the concept of a "thread leader" (the thread that this
> group of signals is to be delivered to) and what happens when the
> "thread leader" exits (how a new "thread leader" is chosen). I suspect
> that the standard addresses all this, but I don't yet have access to the
> standard.
Oh, I agree that a need exists for this kind of semantic. I was just
saying that we do have a place to add the info necessary for it. We could
add it to signal_struct, or we could create another structure that's shared
in a similar fashion.
We can easily add the concept of 'thread group leader'. We already have
the task that has 'tgid == pid', ie the first task that called clone() with
CLONE_THREAD. It would be simple enough to expand on that.
Actually the signal semantics you want in the kernel aren't necessarily
just an implementation of the POSIX process-wide semantic. What you want
is to assume there's a library that's implementing the semantic, and funnel
the signals to it. Directing them all to a single task (thread group
leader, for example) is one good way to do it.
Dave McCracken
======================================================================
Dave McCracken IBM Linux Base Kernel Team 1-512-838-3059
dmccr@us.ibm.com T/L 678-3059
next prev parent reply other threads:[~2001-08-20 20:03 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-20 15:39 [PATCH] 2.4.9 Make thread group id visible in /proc/<pid>/status Dave McCracken
2001-08-20 16:19 ` Alan Cox
2001-08-20 16:26 ` Dave McCracken
2001-08-20 18:50 ` [PATCH] 2.4.9 Make thread group id visible in/proc/<pid>/status george anzinger
2001-08-20 18:59 ` Dave McCracken
2001-08-20 19:52 ` george anzinger
2001-08-20 20:03 ` Dave McCracken [this message]
2001-08-20 19:09 ` [PATCH] 2.4.9 Make thread group id visible in /proc/<pid>/status Miquel van Smoorenburg
2001-08-20 19:15 ` Ulrich Drepper
2001-08-20 19:30 ` Dave McCracken
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=59650000.998337805@baldur \
--to=dmccr@us.ibm.com \
--cc=george@mvista.com \
--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.