Re: how is "exec" executed by a shell?

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

 



On Saturday 08 January 2005 16:10, Jaydeep Chokshi wrote:
>
> Now My confusion is as follows,
>
> $exit
>
> doin this shell exits right, How come shell shold exit
> because 1st shell forked and had child process to
> execute the 'exit' call and thats why exit terminates
> but how this affect the shell to terminate, I mean it
> is child process who executed the 'exit' call so why
> then shell exits.

There is no fork() call.  exit is a shell builtin.  Running it, causes 
the shell to terminate.

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           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