PiDP-8/I SoftwareCheck-in [021f889a86]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fixed a whitespace bug in the method dtach mode uses to extract the PID for passing to systemd, if present.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | screen-mgr-none-dtach
Files: files | file ages | folders
SHA3-256: 021f889a86dac99bf8943e9ac7b874982926168b3a1320390cc225e37e8a2dc6
User & Date: tangent 2020-01-27 17:33:14
Context
2020-01-27
17:45
Allow SCREEN_MANAGER=none mode to work under systemd: don't redirect commands through systemctl if isatty. check-in: 31a8e26aa0 user: tangent tags: screen-mgr-none-dtach
17:33
Fixed a whitespace bug in the method dtach mode uses to extract the PID for passing to systemd, if present. check-in: 021f889a86 user: tangent tags: screen-mgr-none-dtach
17:32
Removed -E mode from the dtach call in the pidp8i script: we *want* to be able to detach from the terminal. This should not interfere with terminal escapes from the simulator since dtach should be scanning for this only from the terminal *input* side. If someone comes up with a reason that SIMH or the simulated software needs Ctrl-\ for its own purposes, we can change the detach character to something else. check-in: e13467f10a user: tangent tags: screen-mgr-none-dtach
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to bin/pidp8i.in.

65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
    then
        echo ""
    elif [ "$SCREEN_MANAGER" = "tmux" ]
    then
        tmux list-sessions -F '#{session_name} #{pid}' | awk '/^pidp8i / {print $2}'
    elif [ "$SCREEN_MANAGER" = "dtach" ]
    then
        test -e $dtsock && fuser -f $dtsock | cut -f2 -d:
    else
        screen -ls pidp8i | grep -Eo '[[:digit:]]+\.pidp8i' | grep -Eo '^[[:digit:]]+'
    fi
}

# Were we given a command line argument?
if [ -z "$1" ]







|







65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
    then
        echo ""
    elif [ "$SCREEN_MANAGER" = "tmux" ]
    then
        tmux list-sessions -F '#{session_name} #{pid}' | awk '/^pidp8i / {print $2}'
    elif [ "$SCREEN_MANAGER" = "dtach" ]
    then
        test -e $dtsock && fuser -f $dtsock | cut -f2 -d' '
    else
        screen -ls pidp8i | grep -Eo '[[:digit:]]+\.pidp8i' | grep -Eo '^[[:digit:]]+'
    fi
}

# Were we given a command line argument?
if [ -z "$1" ]