ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/src/vped.C
(Generate patch)

Comparing gvpe/src/vped.C (file contents):
Revision 1.5 by pcg, Wed Apr 2 03:25:17 2003 UTC vs.
Revision 1.7 by pcg, Tue Apr 15 03:48:40 2003 UTC

200 200
201 act.sa_handler = sighup_handler; sigaction (SIGHUP , &act, NULL); 201 act.sa_handler = sighup_handler; sigaction (SIGHUP , &act, NULL);
202 act.sa_handler = sigusr1_handler; sigaction (SIGUSR1, &act, NULL); 202 act.sa_handler = sigusr1_handler; sigaction (SIGUSR1, &act, NULL);
203 act.sa_handler = sigusr2_handler; sigaction (SIGUSR2, &act, NULL); 203 act.sa_handler = sigusr2_handler; sigaction (SIGUSR2, &act, NULL);
204 act.sa_handler = SIG_IGN; sigaction (SIGCHLD, &act, NULL); 204 act.sa_handler = SIG_IGN; sigaction (SIGCHLD, &act, NULL);
205 act.sa_handler = SIG_IGN; sigaction (SIGPIPE, &act, NULL);
205 act.sa_flags = SA_RESETHAND; 206 act.sa_flags = SA_RESETHAND;
206 act.sa_handler = sigterm_handler; sigaction (SIGINT , &act, NULL); 207 act.sa_handler = sigterm_handler; sigaction (SIGINT , &act, NULL);
207 act.sa_handler = sigterm_handler; sigaction (SIGTERM, &act, NULL); 208 act.sa_handler = sigterm_handler; sigaction (SIGTERM, &act, NULL);
208} 209}
209 210
220 221
221 parse_options (argc, argv, envp); 222 parse_options (argc, argv, envp);
222 223
223 if (show_version) 224 if (show_version)
224 { 225 {
225 printf (_("%s version %s (built %s %s, protocol %d:%d)\n"), get_identity (), 226 printf (_("%s version %s (built %s %s, protocol %d.%d)\n"), get_identity (),
226 VERSION, __DATE__, __TIME__, PROTOCOL_MAJOR, PROTOCOL_MINOR); 227 VERSION, __DATE__, __TIME__, PROTOCOL_MAJOR, PROTOCOL_MINOR);
227 printf (_ 228 printf (_
228 ("Copyright (C) 2003 Marc Lehmann <vpe@plan9.de> and others.\n" 229 ("Copyright (C) 2003 Marc Lehmann <vpe@plan9.de> and others.\n"
229 "See the AUTHORS file for a complete list.\n\n" 230 "See the AUTHORS file for a complete list.\n\n"
230 "tinc comes with ABSOLUTELY NO WARRANTY. This is free software,\n" 231 "tinc comes with ABSOLUTELY NO WARRANTY. This is free software,\n"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines