summaryrefslogtreecommitdiffstats
path: root/mbbsd/io.c
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-03-30 00:22:53 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-03-30 00:22:53 +0800
commit691a3343ad8952b5f542e8ce8944d1c939a90862 (patch)
treef0764d7177a6bd918fe732ae1804cdaf05b5ac3a /mbbsd/io.c
parentec3a8a48e489eec1278ad8026139d9c405e069d6 (diff)
downloadpttbbs-691a3343ad8952b5f542e8ce8944d1c939a90862.tar
pttbbs-691a3343ad8952b5f542e8ce8944d1c939a90862.tar.gz
pttbbs-691a3343ad8952b5f542e8ce8944d1c939a90862.tar.bz2
pttbbs-691a3343ad8952b5f542e8ce8944d1c939a90862.tar.lz
pttbbs-691a3343ad8952b5f542e8ce8944d1c939a90862.tar.xz
pttbbs-691a3343ad8952b5f542e8ce8944d1c939a90862.tar.zst
pttbbs-691a3343ad8952b5f542e8ce8944d1c939a90862.zip
*** empty log message ***
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@72 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/io.c')
-rw-r--r--mbbsd/io.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/mbbsd/io.c b/mbbsd/io.c
index b0331074..4bfd80cc 100644
--- a/mbbsd/io.c
+++ b/mbbsd/io.c
@@ -1,4 +1,4 @@
-/* $Id: io.c,v 1.7 2002/03/16 15:11:09 ptt Exp $ */
+/* $Id: io.c,v 1.8 2002/03/29 16:22:53 ptt Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -184,11 +184,12 @@ static int dogetch() {
return I_OTHERDATA;
}
- while((len = read(0, inbuf, IBUFSIZE)) <= 0) {
- if(len == 0 || errno != EINTR)
- abort_bbs(0);
- /* raise(SIGHUP); */
- }
+
+ while((len = read(0, inbuf, IBUFSIZE)) <= 0) {
+ if(len == 0 || errno != EINTR)
+ abort_bbs(0);
+ /* raise(SIGHUP); */
+ }
ibufsize = len;
icurrchar = 0;
}