Hello list,
I wrote a recursive function to log messages to one file from different
systems. Something like:
if on local system; then
log to local file
else
log back to calling system
But I had a bug where the local system thought it was remote so the else
clause was executed on both sides. So system A called system B to log,
which called system A, which called system B... In not too much time the
stacks filled up and the system with the least free memory died.
So then I read about ulimit -u to limit the number of processes that can be
forked. On SLES the ulimit -u seems to be based on the amount of memory.
Is there a way to have it set to a smaller, safer value? Has anyone
addressed this issue to limit the damage dangerous programmers (such as
myself :)) can do?
Thanks.
--
-Mike MacIsaac
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/