Path: utzoo!news-server.csri.toronto.edu!rutgers!usc!sdd.hp.com!spool.mu.edu!uunet!bu.edu!bucsf.bu.edu!jdubb From: jdubb@bucsf.bu.edu (jay dubb) Newsgroups: comp.unix.programmer Subject: EINVAL being returned by shutdown() call Message-ID: <76574@bu.edu.bu.edu> Date: 10 Mar 91 21:03:01 GMT Sender: news@bu.edu.bu.edu Distribution: usa Organization: Computer Science Department, Boston University, Boston, MA, USA Lines: 10 Originator: jdubb@bucsf.bu.edu I am posting this for a friend of mine who doesn't have access to USENET, so please respond directly to mlevin@jade.tufts.edu. I am using shutdown(i,2) to close a socket whose descriptor was i. For some reason, this call sets errno to 22 - EINVAL, which is not listed as a possible errno return by the man page for shutdown(). Does anyone know what causes shutdown() to set this? Mike Levin (mlevin@jade.tufts.edu)