diff options
| author | Brian Somers <brian@FreeBSD.org> | 2001-01-26 01:41:34 +0000 |
|---|---|---|
| committer | Brian Somers <brian@FreeBSD.org> | 2001-01-26 01:41:34 +0000 |
| commit | 74457d3d4327f7169df5e5596a955d1862b76270 (patch) | |
| tree | c5876cfc6e97e914157e276d25a3081c8b4a0a39 /usr.sbin/ppp/main.c | |
| parent | 283028861ea3d2bb5497dcdbd9064d83bc5863ff (diff) | |
Notes
Diffstat (limited to 'usr.sbin/ppp/main.c')
| -rw-r--r-- | usr.sbin/ppp/main.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c index 6b72b76b35f9..ecc2e0fc24af 100644 --- a/usr.sbin/ppp/main.c +++ b/usr.sbin/ppp/main.c @@ -162,7 +162,15 @@ static void BringDownServer(int signo) { /* Drops all child prompts too ! */ - server_Close(SignalBundle); + if (server_Close(SignalBundle)) + log_Printf(LogPHASE, "Closed server socket\n"); +} + +static void +RestartServer(int signo) +{ + /* Drops all child prompts and re-opens the socket */ + server_Reopen(SignalBundle); } static void @@ -371,6 +379,7 @@ main(int argc, char **argv) if (sw.mode == PHYS_INTERACTIVE) sig_signal(SIGTSTP, TerminalStop); + sig_signal(SIGUSR1, RestartServer); sig_signal(SIGUSR2, BringDownServer); lastlabel = argv[argc - 1]; |
