wait return stuff for freebsd