sunos: handle rearm errors

fix #1078
Merge branch 'v0.10'

Conflicts:
	src/unix/sunos.c