From a27ce746ad9fd36db1d38d9320fb603f5436052f Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 20 Nov 2005 03:30:47 +0000 Subject: [PATCH] document that fork doesn't copy other threads git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- process.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/process.c b/process.c index cf5d824f90..05dee4521c 100644 --- a/process.c +++ b/process.c @@ -1401,6 +1401,9 @@ rb_fork(status, chfunc, charg) * of its children or use Process.detach to register * disinterest in their status; otherwise, the operating system * may accumulate zombie processes. + * + * The thread calling fork is the only thread in the created child process. + * fork doesn't copy other threads. */ static VALUE