[前][次][番号順一覧][スレッド一覧]

ruby-changes:35202

From: hsbt <ko1@a...>
Date: Tue, 26 Aug 2014 11:44:32 +0900 (JST)
Subject: [ruby-changes:35202] hsbt:r47284 (trunk): * lib/shell/process-controller.rb: removed commented-out code.

hsbt	2014-08-26 11:44:26 +0900 (Tue, 26 Aug 2014)

  New Revision: 47284

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47284

  Log:
    * lib/shell/process-controller.rb: removed commented-out code.

  Modified files:
    trunk/ChangeLog
    trunk/lib/shell/process-controller.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 47283)
+++ ChangeLog	(revision 47284)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Aug 26 11:44:04 2014  SHIBATA Hiroshi  <shibata.hiroshi@g...>
+
+	* lib/shell/process-controller.rb: removed commented-out code.
+
 Tue Aug 26 11:39:01 2014  SHIBATA Hiroshi  <shibata.hiroshi@g...>
 
 	* lib/thwait.rb (ThreadsWait): removed needless constant.
Index: lib/shell/process-controller.rb
===================================================================
--- lib/shell/process-controller.rb	(revision 47283)
+++ lib/shell/process-controller.rb	(revision 47284)
@@ -157,19 +157,16 @@ class Shell https://github.com/ruby/ruby/blob/trunk/lib/shell/process-controller.rb#L157
           @waiting_jobs.delete command
         else
           command = @waiting_jobs.shift
-#         command.notify "job(%id) pre-start.", @shell.debug?
 
           return unless command
         end
         @active_jobs.push command
         command.start
-#       command.notify "job(%id) post-start.", @shell.debug?
 
         # start all jobs that input from the job
         for job in @waiting_jobs.dup
           start_job(job) if job.input == command
         end
-#       command.notify "job(%id) post2-start.", @shell.debug?
       end
     end
 
@@ -254,7 +251,6 @@ class Shell https://github.com/ruby/ruby/blob/trunk/lib/shell/process-controller.rb#L251
 
           pid = fork {
             Thread.list.each do |th|
-#             th.kill unless [Thread.main, Thread.current].include?(th)
               th.kill unless Thread.current == th
             end
 
@@ -283,8 +279,6 @@ class Shell https://github.com/ruby/ruby/blob/trunk/lib/shell/process-controller.rb#L279
         rescue Errno::ECHILD
           command.notify "warn: job(%id) was done already waitpid."
           _pid = true
-          #     rescue
-          #       STDERR.puts $!
         ensure
           command.notify("Job(%id): Wait to finish when Process finished.", @shell.debug?)
           # when the process ends, wait until the command terminates
@@ -296,11 +290,8 @@ class Shell https://github.com/ruby/ruby/blob/trunk/lib/shell/process-controller.rb#L290
             redo
           end
 
-#         command.notify "job(%id) pre-pre-finish.", @shell.debug?
           @job_monitor.synchronize do
-#           command.notify "job(%id) pre-finish.", @shell.debug?
             terminate_job(command)
-#           command.notify "job(%id) pre-finish2.", @shell.debug?
             @job_condition.signal
             command.notify "job(%id) finish.", @shell.debug?
           end

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]