:: [DNG] Custom OS initiator. In need …
Etusivu
Poista viesti
Vastaa
Lähettäjä: Edward Bartolo
Päiväys:  
Vastaanottaja: dng
Aihe: [DNG] Custom OS initiator. In need of some hints...
Hi,

This is a question about implementing a minimal OS initiator. If
DNG's admins/mods deem this email is misplaced please delete it or
ignore it.

Till now, I implemented a little OS initiator that calls "/bin/bash"
and then enters an infinite while loop that does nothing. The loop's
purpose is to prevent PID 1 from exiting.

I would like to have my OS initiator:
a) initiate a terminal before launching it. /sbin/init launches six
such terminals tty1..tty6
b) prevent this terminal from closing
c) do some basic child process management

Edward