From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,51bd7bf3e09f50bd X-Google-Attributes: gidfee84,public From: Rob Kirkbride Subject: Re: _exit() function Date: 1997/12/04 Message-ID: #1/1 X-Deja-AN: 295253521 Distribution: world X-NNTP-Posting-Host: rk-comp.demon.co.uk [194.222.52.8] References: <664l4i$1ek$1@lyra.csx.cam.ac.uk> Organization: Bedrock Corp. Reply-To: Rob Kirkbride Newsgroups: comp.unix.osf.osf1 >You are mistaken - the _exit call IS working as described, but the >underlying system is not doing what you expect. All _exit does is >to return control to the operating system, which then has the job of >cleaning up. You lose buffered output because the C run-time system >is not called to write it. > >Most files are closed fairly quickly, though there can be problems >with NFS, but the problem you are seeing is with closing sockets. >These are a Berkeleyism, and have been kludged up most horribly on >all Unices. One of the effects is that it isn't always possible to >do an emergency close from either end - you have to wait for the >other end to close the socket. > >Sorry, but all you can do is to moan at your vendor, who will make >evasive noises. You MAY get them to implement another kludge, with >the hope of reducing the frequency of this effect. Thanks for the reply. We did try complaining to DEC, we were using exit() to begin with , they then recommended _exit, we tried that, that has failed and now they are saying use exit() again! I guess we'll have to have a winge again - we certainly spend enough money with them! Rob -- Rob Kirkbride (rob@rk-comp.demon.co.uk)