Re: does sysctl.proc_exec_affinity affect grand-children processes?
Re: does sysctl.proc_exec_affinity affect grand-children processes?
- Subject: Re: does sysctl.proc_exec_affinity affect grand-children processes?
- From: Weissmann Markus <email@hidden>
- Date: Wed, 8 Aug 2007 00:54:16 +0200
On 7 Aug 2007, at 21:52, Terry Lambert wrote:
On Aug 7, 2007, at 9:20 AM, Weissmann Markus wrote:
Hi folks,
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...
-Markus
---
Markus W. Weissmann
http://www.mweissmann.de/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden