From: Rob Kirkbride <rk-comp@rk-comp.demon.co.uk>
Subject: Re: _exit() function
Date: 1997/12/04 [thread overview]
Message-ID: <MvM3taAN4wh0Ewjq@RK-COMP.DEMON.CO.UK> (raw)
In-Reply-To: 664l4i$1ek$1@lyra.csx.cam.ac.uk
>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)
prev parent reply other threads:[~1997-12-04 5:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-12-03 5:00 _exit() function Rob Kirkbride
1997-12-03 5:00 ` Nick Maclaren
1997-12-04 5:00 ` Rob Kirkbride [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox