public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Better fork() (and possbly others) failure diagnostics
@ 2002-10-15 11:55 Michal Kara
  2002-10-15 13:16 ` jw schultz
  2002-10-15 16:58 ` fork() wait semantics Eduardo Pérez
  0 siblings, 2 replies; 9+ messages in thread
From: Michal Kara @ 2002-10-15 11:55 UTC (permalink / raw)
  To: linux-kernel

  Hello!

  Several times I had real problems with batch jobs failing with EAGAIN,
printed as "Resource temporarily unavailable". Not with the failure, but to
determine the real cause is really a pain. Usually, the problem is in
resource limits (rlimit, set by ulimit), but the returned error code is
misleading.

  There are two ways. One is to print something to syslog, when some rlimit
is reached. This is already done when limit of open files in system is
reached.

  The second is more subtle - define error code for reaching the rlimit
(possibly one errorcode for each rlimit) and slightly change the code to
return correct error code.

  What do you think about this subject?

								Michal Kara

-- 
PING 111.111.111.111 (111.111.111.111): 56 data bytes
...
---- Waiting for outstanding packets ----
No outstanding packets received, just two ordinary.


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2002-10-18 20:04 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-15 11:55 Better fork() (and possbly others) failure diagnostics Michal Kara
2002-10-15 13:16 ` jw schultz
2002-10-15 15:46   ` Michal Kara
2002-10-16  3:11     ` jw schultz
2002-10-18 15:25   ` Pavel Machek
2002-10-15 16:58 ` fork() wait semantics Eduardo Pérez
2002-10-15 18:07   ` Marius Gedminas
2002-10-15 22:28     ` Eduardo Pérez
2002-10-16  8:38       ` Eric W. Biederman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox