shithub: riscv

ref: f3b27fd889ff31531ecd69bbfd1013c9ba57814e
dir: /rc/bin/service/tcp17019/

View raw version
#!/bin/rc
netdir=$3
remote=$2!`{cat $3/remote}
fn server {
	echo -n $netdir $remote >/proc/$pid/args
	rm -f /env/'fn#server'
	. <{n=`{read} && ! ~ $#n 0 && read -c $n} >[2=1]
}
exec tlssrv -a /bin/rc -c server