~ubuntu-branches/ubuntu/quantal/ruby1.9.1/quantal

« back to all changes in this revision

Viewing changes to ext/tk/README.fork

  • Committer: Bazaar Package Importer
  • Author(s): Lucas Nussbaum
  • Date: 2011-09-24 19:16:17 UTC
  • mfrom: (1.1.8 upstream) (13.1.7 experimental)
  • Revision ID: james.westby@ubuntu.com-20110924191617-o1qz4rcmqjot8zuy
Tags: 1.9.3~rc1-1
* New upstream release: 1.9.3 RC1.
  + Includes load.c fixes. Closes: #639959.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
Ruby/Tk does NOT support forking the process on which Tk interpreter
2
 
is running (unless NEVER control Tk interpreter under the forked child 
3
 
process). In the library 'tk.rb', a Tk interpreter is initialized. 
 
2
is running (unless NEVER control Tk interpreter under the forked child
 
3
process). In the library 'tk.rb', a Tk interpreter is initialized.
4
4
Therefore, if you want running Tk under a child process, please call
5
 
"require 'tk'" in the child process. 
 
5
"require 'tk'" in the child process.
6
6
 
7
 
# If do fork and exec(<new Ruby/Tk>) on the child process, you can 
8
 
# control Ruby/Tk interpreter on the child process by 'send' command 
9
 
# of Tcl/Tk. About this, please see Tk.appsend and Tk.rb_appsend, or 
10
 
# 'remote-tk.rb' and the sample 'sample/remote-ip_sample.rb'. 
 
7
# If do fork and exec(<new Ruby/Tk>) on the child process, you can
 
8
# control Ruby/Tk interpreter on the child process by 'send' command
 
9
# of Tcl/Tk. About this, please see Tk.appsend and Tk.rb_appsend, or
 
10
# 'remote-tk.rb' and the sample 'sample/remote-ip_sample.rb'.
11
11
 
12
12
For example, the following sample1 will NOT work, and sample2 will
13
13
work properly.