Removed unnecessary and unrecommended call to setlogsock()