From 23ad458ac9abbe6488c14046e11c1e765e2988ba Mon Sep 17 00:00:00 2001 From: jiikko Date: Mon, 8 May 2023 09:06:36 +0900 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E7=B6=9A=E5=A4=B1=E6=95=97=E3=81=97?= =?UTF-8?q?=E3=81=9F=E3=81=A8=E3=81=8D=E3=81=AB=E6=89=8B=E5=8B=95=E3=81=A7?= =?UTF-8?q?=E8=B5=B7=E5=8B=95=E3=81=A7=E3=81=8D=E3=82=8B=E3=82=88=E3=81=86?= =?UTF-8?q?=E3=81=AB=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/procon_bypass_man.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/procon_bypass_man.rb b/lib/procon_bypass_man.rb index 0d6ab343..023499bc 100644 --- a/lib/procon_bypass_man.rb +++ b/lib/procon_bypass_man.rb @@ -116,6 +116,8 @@ def self.run(setting_path: nil) rescue ProconBypassMan::DeviceConnection::TimeoutError ProconBypassMan::SendErrorCommand.execute(error: "接続に失敗しました。プロコンとRaspberry Piのケーブルを差し直して、再実行してください。\n改善しない場合は、app.logの中身を添えて不具合報告をお願いします。") ProconBypassMan::DeviceStatus.change_to_connected_but_sleeping! + FileUtils.rm_rf(ProconBypassMan.pid_path) # NOTE: この状態になったときに手動で起動できるようにする(多重起動禁止回避) + %w(TERM INT).each do |sig| Kernel.trap(sig) { exit 0 } end