Re: Ignoring responses from "do shell script"
Re: Ignoring responses from "do shell script"
- Subject: Re: Ignoring responses from "do shell script"
- From: Christopher Nebel <email@hidden>
- Date: Thu, 11 Mar 2004 14:34:05 -0800
On Mar 10, 2004, at 10:45 PM, Graff wrote:
Is there a limit to the number of shell processes I wonder?
Most likely, yes. I mentioned this a bit further up in the message
thread along with a solution (which I found a bug in and fixed below).
Basically it looks like there is a hard limit of the number of
processes each user can have going at once under Darwin (the Unix base
for Mac OS X). This limit appears to be 100, you can read a little
about it here:
<http://www.opendarwin.org/pipermail/hackers/2003-April/001653.html>
As the article Graff mentions also points out, the limit defaults to
100, but is no longer hardcoded -- you can get the current value using
the shell command "sysctl kern.maxprocperuid". It's unlikely to ever
be less than 100, though, unless you've got a particularly cruel
sysadmin.
In case anyone is wondering, this sort of thing exists to keep any
single user from chewing up too many resources, and in particular to
prevent "fork bombs", where a single process keeps forking ad nauseam.
(This can happen either maliciously or accidentally.)
--Chris Nebel
AppleScript Engineering
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.