From 54b7bb27c1b999463192ad19cff379d41c37b773 Mon Sep 17 00:00:00 2001 From: piaip Date: Fri, 19 Jun 2009 15:31:18 +0000 Subject: allow disable INSCREEN in logind git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4674 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- daemon/logind/logind.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/daemon/logind/logind.c b/daemon/logind/logind.c index 4e282617..c720624a 100644 --- a/daemon/logind/logind.c +++ b/daemon/logind/logind.c @@ -1749,10 +1749,12 @@ listen_cb(int lfd, short event, void *arg) // So we have to set blocking mode for client again here. if (g_nonblock) _enable_nonblock(fd); +#ifndef LOGIND_NO_INSCREEN // fast draw banner (don't use buffered i/o - this banner is not really important.) -#ifdef INSCREEN +# ifdef INSCREEN write(fd, INSCREEN, sizeof(INSCREEN)); -#endif +# endif // INSCREEN +#endif // !LOGIND_NO_INSCREEN if ((conn = malloc(sizeof(login_conn_ctx))) == NULL) { close(fd); -- cgit v1.2.3