shellscriptでsocket serverするにはどうしよう、ncとpipeかめんどくさいな、と思ってた。古き良きinetdがあるじゃんか。
setusercontext(3)を呼んでるせいで、non-rootで使えないじゃないか……!orz
https://github.com/freebsd/freebsd-src/blob/95498a5acc0888ed2e73237b82a1e90f109473f9/usr.sbin/inetd/inetd.c#L835C9-L835C23
Experimental private instance. Running on FreeBSD!