static int timestamp;
#ifndef _WIN32
static int background;
+static int use_syslog = 0;
static FILE *pid_fp = NULL;
static char *pidfile = NULL;
#endif
#ifndef _WIN32
if (background)
pid_fp = background_self(vpninfo, pidfile);
-#endif
+
+#ifndef __native_client__
+ if (use_syslog) {
+ openlog("openconnect", LOG_PID, LOG_DAEMON);
+ vpninfo->progress = syslog_progress;
+ }
+#endif /* !__native_client__ */
+#endif /* !_WIN32 */
}
int main(int argc, char **argv)
#ifndef _WIN32
struct sigaction sa;
struct utsname utsbuf;
- int use_syslog = 0;
#endif
#ifdef ENABLE_NLS
}
-#if !defined(_WIN32) && !defined(__native_client__)
- if (use_syslog) {
- openlog("openconnect", LOG_PID, LOG_DAEMON);
- vpninfo->progress = syslog_progress;
- }
-#endif /* !_WIN32 && !__native_client__ */
-
if (!vpninfo->vpnc_script) {
vpn_progress(vpninfo, PRG_INFO,
_("No --script argument provided; DNS and routing are not configured\n"));
for tunnel interface
.TP
.B \-l,\-\-syslog
-Use syslog for progress messages
+After tunnel is brought up, use syslog for further progress messages
.TP
.B \-\-timestamp
Prepend a timestamp to each progress message