shithub: mc

ref: 10009f394344f655190934e9c5d654b9bce37032
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)
}