From 33441c74e727ec39a6c6451ae72fc6fa05185414 Mon Sep 17 00:00:00 2001 From: Pagan Gazzard Date: Tue, 19 Aug 2014 17:46:38 +0100 Subject: [PATCH] Silence the setting up of the socket. This was appearing whenever you started a new tty.js terminal - leaking stuff that shouldn't really be. --- src/enterContainer.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/enterContainer.sh b/src/enterContainer.sh index c80ba267..98bd19a8 100644 --- a/src/enterContainer.sh +++ b/src/enterContainer.sh @@ -1,3 +1,4 @@ +#!/bin/bash SOCKET_NAME=test-${1}-${2}-${3} HOST_DATA_PATH=/resin-data/resin-supervisor HOST_SOCKET=${HOST_DATA_PATH}/${SOCKET_NAME} @@ -7,5 +8,5 @@ echo " rm -f ${HOST_SOCKET} socat UNIX-LISTEN:${HOST_SOCKET} EXEC:'${HOST_DATA_PATH}/enter.sh ${1}',pty,setsid,setpgid,stderr,ctty & exit -" | socat UNIX:${SUPERVISOR_SOCKET_PATH}/host - +" | socat UNIX:${SUPERVISOR_SOCKET_PATH}/host - >& /dev/null socat UNIX:${SUPERVISOR_SOCKET_PATH}/${SOCKET_NAME} -,raw,echo=0