Messages in this thread | | | Date | Fri, 22 Aug 2003 10:03:32 -0700 | From | Ulrich Drepper <> | Subject | Re: [PATCH] Allow either tid or pid in SCM_CREDENTIALS struct ucred |
| |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Jeremy Fitzhardinge wrote:
> This patch also makes it accept tgid in the SCM_CREDENTIALS pid field. > That is, a threaded program can either supply the ID of the whole > process (tgid) or a particular thread (pid).
I don't think ->pid should be tested. Just replace it with ->tgid. It's really not intended for the user to have any contact with the TID (i.e., ->pid). This is how it's done in other place. What this shows is that more searches for ->pid are needed which need to be replaced with ->tgid.
- -- - --------------. ,-. 444 Castro Street Ulrich Drepper \ ,-----------------' \ Mountain View, CA 94041 USA Red Hat `--' drepper at redhat.com `--------------------------- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE/Rkzk2ijCOnn/RHQRAi7PAKCT+l2NCmoDzpHgq/yqFcqXmBArKQCgkxzW wy2BYybK6yXrJRpNd6957tA= =IW8f -----END PGP SIGNATURE-----
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |