On Wed, 25 Jun 2008 09:27:13 -0400 David Korn <[EMAIL PROTECTED]> wrote:
> > running the following script on Linux ends up in an infinite loop: > > > > #!/bin/ksh > > ulimit -u 10 > > for (( i = 0; i < 10; i++ )); do > > cat /dev/zero > /dev/null & > > done > > > > I ran this script and with the current backup it fails after 30 seconds. > I beleive that it fork() fails six times. Yes, if the number of the running processes is lower than the number given to ulimit the script fails after some time. But if the parameter given to ulimit -u is lower than the number of already running processes, the script doesn't seem to fail. It takes 100 % of CPU and stays running. -- Tomáš Smetana Base OS Software Engineer, Red Hat RH IRC: #brno #devel #base-os; Freenode IRC: #fedora-devel _______________________________________________ ast-developers mailing list [email protected] https://mailman.research.att.com/mailman/listinfo/ast-developers
