shithub: mc

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