The core problem here is that SIGCHLD doesn't tell you which of your many children may have exited... so when the process spawned by popen() finishes, it will trigger that SIGCHLD handler, and if it's waiting for a process that isn't likely to finish any time soon, things get ugly. So, we'll wait with WNOHANG, and check the status code from that, to determine whether the right child process has exited. Unix process management... <shudder>
|10 years ago|
|base-installer.d||12 years ago|
|debian||10 years ago|
|.gitignore||10 years ago|
|Makefile||10 years ago|
|README||17 years ago|
|TODO||17 years ago|
|dhcp.c||10 years ago|
|ethtool-lite.c||10 years ago|
|killall.sh||13 years ago|
|netcfg-common.c||10 years ago|
|netcfg-static.c||10 years ago|
|netcfg.c||10 years ago|
|netcfg.h||10 years ago|
|static.c||10 years ago|
|wireless.c||11 years ago|
This package is used by debian-installer to configure the network. The purpose
1. configure the network for the currently running kernel so that the base
system can be retrieved from the internet or a local mirror.
2. write configuration files so that when the machine reboots into the full
debian system the network is brought up automatically.
netcfg is written specifically for the debian-installer and probably won't work
as expected if you try to run it on a full Debian system. If you want
something for a full system, take a look at etherconf or pppconfig (eventually).
Currently static and dhcp configuration is supported.