Skip to content
Browse files

wrapper: 10.7 "Lion" support

Several users have reported "no problems" using the wrapper with
Lion (although all using iTerm or iTerm2).

    51bbc9f#all_commit_comments
    #3

Update the wrapper code to not issue a warning about an "unsupported
new OS" when run on Lion.

The signature of _vprocmgr_move_subset_to_user matches the one from
10.6 (see libvproc.c or vproc_priv.h in the launchd source code).

    http://www.opensource.apple.com/release/mac-os-x-107/
  • Loading branch information...
1 parent 6ad067c commit dadea0aa48259c704d0b412b9588de2f5623e323 @ChrisJohnsen committed Jul 24, 2011
Showing with 6 additions and 3 deletions.
  1. +6 −3 reattach-to-user-namespace.c
View
9 reattach-to-user-namespace.c
@@ -86,13 +86,16 @@ int main(int argc, char *argv[]) {
* < 10.5 => 1050 with warning
* 10.5 => 1050
* 10.6 => 1060
- * > 10.6 => 1060 with warning
+ * 10.7 => 1060
+ * > 10.7 => 1060 with warning
*/
- if (os < 1050) {
+ if (1060 <= os && os <= 1070)
+ os = 1060;
+ else if (os < 1050) {
warn("unsupported old OS, trying as if it were 10.5");
os = 1050;
} else if (os > 1060) {
- warn("unsupported new OS, trying as if it were 10.6");
+ warn("unsupported new OS, trying as if it were 10.6-10.7");
os = 1060;
}

0 comments on commit dadea0a

Please sign in to comment.
Something went wrong with that request. Please try again.