From e1cdcfdb172071bafef18b1ac160138c97459b79 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sat, 7 Mar 2020 20:06:55 +0100 Subject: acme: split win into winfs and rc script, get rid of lib9p leavefdsopen hack split the acme win command into a winfs fileserver which handles /dev/cons emulation and a rc script responsible for launching the command. with these changes, the fd fiddling is not neccesary anymore and we can get rid of the leavefdsopen hack. --- acme/bin/win | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 acme/bin/win (limited to 'acme/bin/win') diff --git a/acme/bin/win b/acme/bin/win new file mode 100755 index 000000000..165ec2499 --- /dev/null +++ b/acme/bin/win @@ -0,0 +1,12 @@ +#!/bin/rc +if(~ $#* 0){ + *=(rc -i) +} +/acme/bin/$cputype/winfs $1 >/dev/null >[2=1] || { + # compat + exec /acme/bin/$cputype/win $* + exit +} +echo dump $* > /dev/acme/ctl +/dev/cons >[2=1] $* +exit '' -- cgit v1.2.3