next up previous contents
Next: 12 Security Up: Dwun 0.96c Previous: 10 Custom/verbose client messages   Contents

11 Recognised signals

pppd returns 0 for okay and 1 for error. This was not good enough for dwun. As a solution, dwun can use signals from the the dialup scripts to recognise the connection status. Dwun writes its pid to /var/run/dwun.pid5. The following signals are recognised:

SIGHUP
shutdown server.
SIGINT
fatal commandon error, alert users and stop dialing.
SIGUSR1
connection is up and working.
SIGUSR2
bad connection, need to disconnect and redial.



2001-01-23