[PATCH xserver] xfree86 linux: Don't complain about setsid failures.

Mark Kettenis mark.kettenis at xs4all.nl
Sat Sep 18 02:16:32 PDT 2010


> Date: Fri, 17 Sep 2010 16:29:24 -0700
> From: Jesse Adkins <jesserayadkins at gmail.com>
> 
> setsid only fails with EPERM, and it only fails if we're already
> the process leader (which is what would happen if it succeeded).
> 
> Patch attached to prevent tab damage

If you do, please make sure your MUA doesn't encode these as base64.
Difficult to review a diff like the one below:

> RnJvbSAxYWRiOTUzMzBlYTdjZTZkNjg2ZWZlZDA0YjIwNTMzYWRlMzgyMDYzIE1vbiBTZXAgMTcg
> MDA6MDA6MDAgMjAwMQpGcm9tOiBKZXNzZSBBZGtpbnMgPGplc3NlcmF5YWRraW5zQGdtYWlsLmNv
> bT4KRGF0ZTogRnJpLCAxNyBTZXAgMjAxMCAxNDo1ODoyNyAtMDcwMApTdWJqZWN0OiBbUEFUQ0hd
> IHhmcmVlODYgbGludXg6IERvbid0IGNvbXBsYWluIGFib3V0IHNldHNpZCBmYWlsdXJlcy4KCnNl
> dHNpZCBvbmx5IGZhaWxzIHdpdGggRVBFUk0sIGFuZCBpdCBvbmx5IGZhaWxzIGlmIHdlJ3JlIGFs
> cmVhZHkKdGhlIHByb2Nlc3MgbGVhZGVyICh3aGljaCBpcyB3aGF0IHdvdWxkIGhhcHBlbiBpZiBp
> dCBzdWNjZWVkZWQpLgoKU2lnbmVkLW9mZi1ieTogSmVzc2UgQWRraW5zIDxqZXNzZXJheWFka2lu
> c0BnbWFpbC5jb20+Ci0tLQogaHcveGZyZWU4Ni9vcy1zdXBwb3J0L2xpbnV4L2xueF9pbml0LmMg
> fCAgICA3ICsrKy0tLS0KIDEgZmlsZXMgY2hhbmdlZCwgMyBpbnNlcnRpb25zKCspLCA0IGRlbGV0
> aW9ucygtKQoKZGlmZiAtLWdpdCBhL2h3L3hmcmVlODYvb3Mtc3VwcG9ydC9saW51eC9sbnhfaW5p
> dC5jIGIvaHcveGZyZWU4Ni9vcy1zdXBwb3J0L2xpbnV4L2xueF9pbml0LmMKaW5kZXggOTJiZmRl
> NC4uMjIyYmJlNCAxMDA2NDQKLS0tIGEvaHcveGZyZWU4Ni9vcy1zdXBwb3J0L2xpbnV4L2xueF9p
> bml0LmMKKysrIGIvaHcveGZyZWU4Ni9vcy1zdXBwb3J0L2xpbnV4L2xueF9pbml0LmMKQEAgLTE1
> NywxMCArMTU3LDkgQEAgeGY4Nk9wZW5Db25zb2xlKHZvaWQpCiAJCXhmODZNc2coWF9XQVJOSU5H
> LCAieGY4Nk9wZW5Db25zb2xlOiBzZXRwZ2lkIGZhaWxlZDogJXNcbiIsCiAJCQlzdHJlcnJvcihl
> cnJubykpOwogCi0JICAgIC8qIGJlY29tZSBwcm9jZXNzIGdyb3VwIGxlYWRlciAqLwotCSAgICBp
> ZiAoKHNldHNpZCgpIDwgMCkpCi0JCXhmODZNc2coWF9XQVJOSU5HLCAieGY4Nk9wZW5Db25zb2xl
> OiBzZXRzaWQgZmFpbGVkOiAlc1xuIiwKLQkJCXN0cmVycm9yKGVycm5vKSk7CisJICAgIC8qIFRy
> eSB0byBiZWNvbWUgdGhlIHByb2Nlc3MgZ3JvdXAgbGVhZGVyLiBUaGVyZSdzIG5vIG5lZWQgdG8g
> Y2hlY2sKKwkgICAgICAgdGhpcywgc2luY2UgaXQgb25seSBmYWlscyBpZiB3ZSdyZSBhbHJlYWR5
> IHRoZSBsZWFkZXIuICovCisJICAgIHNldHNpZCgpOwogCX0KIAogICAgICAgICBpPTA7Ci0tIAox
> LjcuMC40Cgo=


More information about the xorg-devel mailing list