From 5fefe654f3b8b78c95922b6dcd3d5279c18868f3 Mon Sep 17 00:00:00 2001
From: VakarisZ <vakarisz@yahoo.com>
Date: Thu, 24 Sep 2020 17:14:07 +0300
Subject: [PATCH] Added "is monkey already running" check for linux machine.

---
 .../src/components/ui-components/IslandMonkeyRunErrorModal.js   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/monkey/monkey_island/cc/ui/src/components/ui-components/IslandMonkeyRunErrorModal.js b/monkey/monkey_island/cc/ui/src/components/ui-components/IslandMonkeyRunErrorModal.js
index 8b2a8857d..000574a28 100644
--- a/monkey/monkey_island/cc/ui/src/components/ui-components/IslandMonkeyRunErrorModal.js
+++ b/monkey/monkey_island/cc/ui/src/components/ui-components/IslandMonkeyRunErrorModal.js
@@ -53,7 +53,7 @@ class IslandMonkeyRunErrorModal extends React.PureComponent {
   }
 
   getDisplayContentByError(errorMsg) {
-    if (errorMsg.includes('Permission denied:')) {
+    if (errorMsg.includes('Permission denied:') || errorMsg.includes('Text file busy')) {
       return this.getMonkeyAlreadyRunningContent()
     } else if (errorMsg.startsWith('Copy file failed')) {
       return this.getMissingBinariesContent()