FIXED: wrong call to linux funcion in solaris.