Commits

Michael Granger  committed d42c7aa

Don't set up default signal handlers for WINCH and CHLD for Tasks.

  • Participants
  • Parent commits 466b8bd

Comments (0)

Files changed (1)

File lib/symphony/task.rb

 
 
 	# Signal to reset to defaults for the child
-	SIGNALS = %i[ INT TERM HUP CHLD WINCH ]
+	SIGNALS = %i[ INT TERM HUP ]
 
 	# Valid work model types
 	WORK_MODELS = %i[ longlived oneshot ]
 			self.on_interrupt
 		when :HUP
 			self.on_hangup
-		when :CHLD
-			self.on_child_exit
-		when :WINCH
-			self.on_window_size_change
 		else
 			self.log.warn "Unhandled signal %s" % [ sig ]
 		end
 	end
 
 
-	### Handle a child process exiting.
-	def on_child_exit
-		self.log.info "Child exited."
-		Process.waitpid( 0, Process::WNOHANG )
-	end
-
-
-	### Handle a window size change event. No-op by default.
-	def on_window_size_change
-		self.log.info "Window size changed."
-	end
-
-
 	### Handle a hangup signal by re-reading the config and restarting.
 	def on_hangup
 		self.log.info "Hangup signal."