Re: fork() wait semantics

From: Marius Gedminas (mgedmin@centras.lt)
Date: Tue Oct 15 2002 - 13:07:43 EST


On Tue, Oct 15, 2002 at 04:58:44PM +0000, Eduardo Pérez wrote:
> As an example consider bash. In case of fork() error the program
> isn't even run thus causing a fatal error. If fork() waited for
> resources to be available there wouldn't be any problem.

No, thank you. This happened to me more than once (runaway fetchmail
plugins). An error message about a failing fork() indicates
immediatelly that I have too many processes, and I can kill them
(thankfully kill is a bash builtin). If bash just waited silently I
wouldn't know what to think.

Marius Gedminas

-- 
This sentence contradicts itself -- no actually it doesn't.
                -- Douglas Hofstadter
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Oct 15 2002 - 22:00:56 EST