diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-03-30 00:22:53 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-03-30 00:22:53 +0800 |
commit | 691a3343ad8952b5f542e8ce8944d1c939a90862 (patch) | |
tree | f0764d7177a6bd918fe732ae1804cdaf05b5ac3a /mbbsd/io.c | |
parent | ec3a8a48e489eec1278ad8026139d9c405e069d6 (diff) | |
download | pttbbs-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.c | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -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; } |