you would have to disable the limit for creating processes for it to
half full potential
RLIMIT_NPROC
If you did create a process that did nothing on UNIX, it would zombie
out as soon as it stop processing. You'd probably fill out the process
table, but that's nothing to worry about.
Ideally, you'd want a fork do an infinite loop. And something to think
about - a signal handler to catch kill -9 calls, which would fork
other processes.
Now that would cause a few issues.
On Tue, Jul 31, 2012 at 7:35 AM, chris Jones <[log in to unmask]> wrote:
> On 31/07/12 16:25, chris Jones wrote:
>>
>> There is in this email!
>
> Here again in POSIX C and C++
>
> #include <unistd.h>
> int main()
> {
> while(1)
> fork(); return 0;
> }
>
>
> and in Python
>
> import os while True: os.fork()
>
>
> and in Micro soft Windows batch
>
> %0|%0
>
> and more....
|