Bugs: Browse | Submit New | Admin

[#15458] Leopard, OSA, and Forking

Date:
2007-11-08 15:45
Priority:
3
Submitted By:
Kjell Olsen (kjell)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
Leopard, OSA, and Forking

Detailed description
I have a script that makes itunes into an alarm clock, turning off and on at whatever intervals I tell it to. [1]. It
reads a command string, breaks it down into distinct commands, and forks a process for each command that will either
start or stop itunes at the specified time. Forking a process and calling OSA has unhappy results[2].

>> Process.fork do
?> m = OSA.app('Mail')
>> end
=> 87041
>> "The process has forked and you cannot use this CoreFoundation functionality safely. You MUST exec().
Break on __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__() to debug."
[and it spits this out a bunch of times]

Any ideas? I'm baffled, it worked fine in tiger and now it breaks with both my own ruby install (macports,
/opt/local/bin/ruby) and leopard's ruby.

1. http://pastie.caboo.se/115463
2. http://pastie.caboo.se/115466

Add A Comment: Notepad

Please login


Followup

Message
Date: 2007-11-10 04:21
Sender: Kjell Olsen

Posted a screengrab of the console logs after a crash, nothing
that google is
helping me figure out.

Attached Files:

Name Description Download
Picture 1.png console.log output after crash Download

Changes:

Field Old Value Date By
File Added2788: Picture 1.png2007-11-10 04:19kjell