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: Terry Lambert <email@hidden>
- Date: Tue, 7 Aug 2007 16:16:24 -0700
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:
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...
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:
(1) Flag the shell as "Run under Rosetta" in the finder
(2) Use launch services rather than exec to start the process
There are probably other/better approaches that I don't know. Maybe
someone else can answer this, or you can contact DTS and ask.
-- Terry
_______________________________________________
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