Re: Will recurive exec() callings result in kernel stack overflow?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 30 Aug 2008 16:57:08 +0800
ZelluX <zellux@xxxxxxxxx> wrote:

> I'm wondering what will happen if a program recurively calls exec(), for
> example, a script calls itself repeatitively. Will it cause kernel stack
> overflow?

Exec replaces the current process with a new executable, which starts
from scratch.

The important bit here is "from scratch".  Everything in the process
is wiped out, which means there is no recursion.

-- 
All rights reversed.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux