Mercurial > dropbear
comparison svr-main.c @ 1211:6ecc133fb2ee
Allow setting syslog identifier via startsyslog().
author | Konstantin Tokarev <ktokarev@smartlabs.tv> |
---|---|
date | Tue, 01 Dec 2015 21:54:03 +0300 |
parents | 64a50eac1030 |
children | 2bb4c662d1c2 |
comparison
equal
deleted
inserted
replaced
1210:64a50eac1030 | 1211:6ecc133fb2ee |
---|---|
365 /* Things used by inetd and non-inetd modes */ | 365 /* Things used by inetd and non-inetd modes */ |
366 static void commonsetup() { | 366 static void commonsetup() { |
367 | 367 |
368 struct sigaction sa_chld; | 368 struct sigaction sa_chld; |
369 #ifndef DISABLE_SYSLOG | 369 #ifndef DISABLE_SYSLOG |
370 startsyslog(); | |
371 if (opts.usingsyslog) { | 370 if (opts.usingsyslog) { |
371 startsyslog(PROGNAME); | |
372 } | 372 } |
373 #endif | 373 #endif |
374 | 374 |
375 /* set up cleanup handler */ | 375 /* set up cleanup handler */ |
376 if (signal(SIGINT, sigintterm_handler) == SIG_ERR || | 376 if (signal(SIGINT, sigintterm_handler) == SIG_ERR || |