My question is just that. Is there a command in Xcode that uses a process other than fork?
Asked
Active
Viewed 322 times
0
-
1See http://stackoverflow.com/questions/2333078/how-to-launch-application-and-bring-it-to-front-using-cocoa-api – Nick Moore Jan 06 '11 at 17:32
-
also http://stackoverflow.com/questions/412562/execute-a-terminal-command-from-a-cocoa-app – Nick Moore Jan 06 '11 at 17:36
-
@middaparka why did you break the spelling of Xcode in edits? – Richard Jan 06 '11 at 17:40
-
@Richard - My bad. I thought that "XCode" was the official spelling, but am clearly epically wrong. (Bit late in the day, clearly time to step away from the keyboard.) :-) – John Parker Jan 06 '11 at 17:47
1 Answers
0
There are other APIs to launch applications, but they all ultimately rely on fork()/exec()
. There's no other way on UNIX to start a new process from userland than forking an existing process. You can install another task as a launchd
job, then launch it by satisfying its start conditions - that doesn't directly use fork()
(though of course it causes launchd
to fork).