diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-05-17 10:19:45 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-05-17 10:19:45 +0000 |
commit | a46ecb2eb44cda820977c600378231a23ad784a9 (patch) | |
tree | 6ee7cea921d64f37739eafe578f2c3daf3927fe9 /lib/shell/process-controller.rb | |
parent | 6d06d6908846d718bf980311fdedbb0ee546cf17 (diff) | |
download | ruby-a46ecb2eb44cda820977c600378231a23ad784a9.tar.gz ruby-a46ecb2eb44cda820977c600378231a23ad784a9.tar.xz ruby-a46ecb2eb44cda820977c600378231a23ad784a9.zip |
* lib/shell.rb, lib/shell/process-controller.rb,
lib/shell/command-processor.rb: translate Japanese comments into
English.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/shell/process-controller.rb')
-rw-r--r-- | lib/shell/process-controller.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/shell/process-controller.rb b/lib/shell/process-controller.rb index 5cbbe0c50..26fb1d9f0 100644 --- a/lib/shell/process-controller.rb +++ b/lib/shell/process-controller.rb @@ -102,7 +102,7 @@ class Shell end end - # jobのスケジュールの追加 + # schedule a command def add_schedule(command) @jobs_sync.synchronize(:EX) do ProcessController.activate(self) @@ -114,7 +114,7 @@ class Shell end end - # job を開始する + # start a job def start_job(command = nil) @jobs_sync.synchronize(:EX) do if command @@ -127,7 +127,7 @@ class Shell @active_jobs.push command command.start - # そのjobをinputとするjobも開始する + # start all jobs that input from the job for job in @waiting_jobs start_job(job) if job.input == command end @@ -146,7 +146,7 @@ class Shell end end - # jobの終了 + # terminate a job def terminate_job(command) @jobs_sync.synchronize(:EX) do @active_jobs.delete command @@ -157,7 +157,7 @@ class Shell end end - # jobの強制終了 + # kill a job def kill_job(sig, command) @jobs_sync.synchronize(:SH) do if @waiting_jobs.delete command @@ -177,7 +177,7 @@ class Shell end end - # すべてのjobの実行終了待ち + # wait for all jobs to terminate def wait_all_jobs_execution @job_monitor.synchronize do begin @@ -190,7 +190,7 @@ class Shell end end - # 簡単なfork + # simple fork def sfork(command, &block) pipe_me_in, pipe_peer_out = IO.pipe pipe_peer_in, pipe_me_out = IO.pipe @@ -237,7 +237,7 @@ class Shell command.notify "warn: job(%id) was done already waitipd." _pid = true ensure - # プロセス終了時にコマンド実行が終わるまで待たせるため. + # when the process ends, wait until the command termintes if _pid else command.notify("notice: Process finishing...", |