diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-03-07 05:59:42 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-03-07 05:59:42 +0000 |
commit | 7590bd684f00ac8aad5e6f01728145f61ec1d0eb (patch) | |
tree | 842fe16738ccff2dee8b962b1ed71ddc0eda62c5 /ext/pty/script.rb | |
parent | e9adbe3fc0c9c78637d9be2d97ac7360b545a05f (diff) | |
download | ruby-7590bd684f00ac8aad5e6f01728145f61ec1d0eb.tar.gz ruby-7590bd684f00ac8aad5e6f01728145f61ec1d0eb.tar.xz ruby-7590bd684f00ac8aad5e6f01728145f61ec1d0eb.zip |
* parse.y (dsym): :"symbol string" style should not contain `\0'.
* process.c (proc_detach): new method Proc#detach(pid) which
create background watcher thread to issue waitpid. [new]
* process.c (rb_detach_process): utility function to detach
process from C code.
* ext/pty/pty.c (pty_finalize_syswait): terminate watcher thread,
and detach child process (by creating new idle waitpid watcher
thread).
* ext/pty/pty.c (pty_syswait): may lost signal stopped child.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/pty/script.rb')
-rw-r--r-- | ext/pty/script.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/pty/script.rb b/ext/pty/script.rb index 308493563..dbb933171 100644 --- a/ext/pty/script.rb +++ b/ext/pty/script.rb @@ -10,8 +10,7 @@ logfile = File.open(ofile,"a") system "stty -echo raw lnext ^_" -PTY.spawn("/bin/csh") do - |r_pty,w_pty,pid| +PTY.spawn("/bin/csh") do |r_pty,w_pty,pid| Thread.new do while true |