Changeset a08f031


Ignore:
Timestamp:
07/01/2022 03:16:42 AM (22 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
xry111/clfs-ng
Children:
e395f06
Parents:
e4d72ed
Message:

add fool-proof protection preventing exiting from init shell

Here "fool" means myself :).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter07/chroot.xml

    re4d72ed ra08f031  
    1010
    1111  <title>Setting up the Environment</title>
     12
     13    <para>The current shell is also the <command>init</command> process,
     14    so exiting from it will cause kernel panic.  Prevent exiting from the
     15    shell accidentally:</para>
     16
     17<screen role="nodump"><userinput>enable -n exit
     18readonly IGNOREEOF=1000</userinput></screen>
    1219
    1320    <para>The standard I/O streams of the initial shell process is connected
Note: See TracChangeset for help on using the changeset viewer.