site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Hi folks, (1) Flag the shell as "Run under Rosetta" in the finder (2) Use launch services rather than exec to start the process -- Terry _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... On Aug 7, 2007, at 3:54 PM, Weissmann Markus wrote: On 7 Aug 2007, at 21:52, Terry Lambert wrote: On Aug 7, 2007, at 9:20 AM, Weissmann Markus wrote: does 'sysctlbyname("sysctl.proc_exec_affinity", ..' [1] affect the direct subprocesses only or is this inherited to child processes? Yes, the flag is inherited; consider that if you are running a PPC binary under Rosetta on an Intel box, and it needs to execute something that talks to the main app using Mach messages, and that in turn needs to execute something else that does the same, and you haven't gone to the trouble to mdeal with the byte order issues (or one of them was a third party app). Thanks - seems to work just fine! Though I have one problem left: Is there a way to force interpreters like the shell to execute ppc code, too? As long as I call a program directly, everything works just fine, but when called through a shell, child processes escape the enforced Rosetta emulation... I'm not well enough informed on the intended behaviour to answer this. There's a skanky two step way to "make it work", which you may or may not be interested in: There are probably other/better approaches that I don't know. Maybe someone else can answer this, or you can contact DTS and ask. This email sent to site_archiver@lists.apple.com