shithub: mc

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