shithub: mc

ref: 4a30425e39b5126c8950b933ea8df08164125e9b
dir: /lib/sys/setup+posixy.myr/

View raw version
use "sys"

pkg sys =
;;

const __init__ = {
	var sa, osa

	/* is there ever a time we care about sigpipe? */
	sa = [
		.handler = ({;} : byte#),
		.flags = sys.Sarestart,
	]
	sys.sigaction(Sigpipe, &sa, &osa)
}