This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Fix comment that describes sighandler_setxid
- From: Siddhesh Poyarekar <siddhesh at redhat dot com>
- To: libc-alpha at sourceware dot org
- Date: Wed, 18 Jul 2012 14:22:02 +0530
- Subject: [PATCH] Fix comment that describes sighandler_setxid
Hi,
Attached patch fixes the comment on top of sighandler_setxid -- looks
like it was just copied over from the cancellation handler and the
comment not updated. OK to commit?
Regards,
Siddhesh
nptl/ChangeLog:
2012-07-18 Siddhesh Poyarekar <siddhesh@redhat.com>
* nptl-init.c (sighandler_setxid): Fix the comment that
describes it.
diff --git a/nptl/nptl-init.c b/nptl/nptl-init.c
index ea3d1ec..5216ce1 100644
--- a/nptl/nptl-init.c
+++ b/nptl/nptl-init.c
@@ -229,7 +229,9 @@ sigcancel_handler (int sig, siginfo_t *si, void *ctx)
struct xid_command *__xidcmd attribute_hidden;
-/* For asynchronous cancellation we use a signal. This is the handler. */
+/* We use the SIGSETXID signal in the setuid, setgid, etc. implementations to
+ tell each thread to call the respective setxid syscall on itself. This is
+ the handler. */
static void
sighandler_setxid (int sig, siginfo_t *si, void *ctx)
{