ctdb-scripts: Compact server-end TCP connection killing output
[samba.git] / ctdb / tests / eventscripts / stubs / ss
index e8d804481df34b5d92e1afb3e25939b6e0341711..1a3db0d04679e4b946527590c6677be633b41370 100755 (executable)
@@ -77,6 +77,10 @@ ss_tcp_established ()
            echo 0 0 "$src" "$dst"
        fi
     done
+
+    if [ -z "$FAKE_NETSTAT_TCP_ESTABLISHED_FILE" ] ; then
+           return
+    fi
     while read src dst ; do
        if filter_socket "$srcs" "$sports" "$src" ; then
            echo 0 0 "$src" "$dst"