If I do
Process.fork do
x
end
how can I know what x returned (e.g. true/fase/string) ?
(Writing to a file/database is not an
The fork communication between two Unix processes is mainly the return code and nothing more. However, you could open a filedescriptor between the two processes and pass data between the processes over this filedescriptor: this is the normal Unix pipe way.
If you would pass Marshal.dump() and Marshal.load() values, you could easily pass Ruby objects between those Ruby processes.