Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!mcsun!ukc!stc!kings!lls From: lls@kings.co.uk (Lady Lodge Systems) Newsgroups: comp.unix.wizards Subject: Re: Who is responsible for a retry (was Re: Is System V.4 fork reliable?) Message-ID: <35@kings.co.uk> Date: 2 Aug 90 12:47:18 GMT References: <561@oglvee.UUCP> <480@amanue.UUCP> <13426@cbmvax.commodore.com> <573@oglvee.UUCP> <7885@tekgvs.LABS.TEK.COM> <866@mwtech.UUCP> <1809@necisa.ho.necisa.oz> Reply-To: lls@kings.UUCP (Superuser) Organization: King Bros Lines: 32 In article <1809@necisa.ho.necisa.oz> boyd@necisa.ho.necisa.oz (Boyd Roberts) writes: >When fork() fails with EAGAIN it fails for a good reason. >A trivial addition to user-mode programs is what is required, and NOT >the re-definition of a well defined critical interface. >Leave the kernel and C library alone. Write your own re-trying fork(). OK! Napalm dispenser armed..... How about AT&T making the 'trivial' addition to their user mode programs? The shell springs to mind! What are you suggesting? I make the trivial addition of rewriting the shell?? How about the other programs that I only have in binary form - rewrite them as well?? People are missing the whole point here. The vast majority of Un*x users are binary only licencees and cannot easily change their code to deal with EAGAIN returns in all of their (binary only) programs. When fork fails through a temporary log-jam in the kernel surely the kernel should deal with the situation before telling the calling application that the world has just ended? If fork fails because the process table is full we can fix that by retuning for sensible limits - WE CAN'T FIX THE KERNEL GETTING ITS INTERNALS SNARLED UP The code that I write does check for EAGAIN and retry - however, other utilities and packages that I call (including /bin/sh) do not - how do I fix that? -- ------------------------------------------------------------------------- | Peter King. | Voice: +44 733 239445 | | King Bros (Lady Lodge) Ltd | EMAIL: root@kings.co.uk | | Lady Lodge House, Orton Longueville, | UUCP: ...mcvax!ukc!kings!root | | Peterborough, PE2 0HZ, England. | | -------------------------------------------------------------------------