diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-02-12 22:28:54 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-02-12 22:28:54 +0800 |
commit | f74bbaea321b54daa355038bc4131bfd7c2af136 (patch) | |
tree | e52cd5484348ad57f218e1e90bd12bb41cb3159c /util/bbsrf.c | |
parent | 7c3e5a8f77da376fddc9a38adc2052913c774f2d (diff) | |
download | pttbbs-f74bbaea321b54daa355038bc4131bfd7c2af136.tar pttbbs-f74bbaea321b54daa355038bc4131bfd7c2af136.tar.gz pttbbs-f74bbaea321b54daa355038bc4131bfd7c2af136.tar.bz2 pttbbs-f74bbaea321b54daa355038bc4131bfd7c2af136.tar.lz pttbbs-f74bbaea321b54daa355038bc4131bfd7c2af136.tar.xz pttbbs-f74bbaea321b54daa355038bc4131bfd7c2af136.tar.zst pttbbs-f74bbaea321b54daa355038bc4131bfd7c2af136.zip |
if exec(2) fails, sleep 3 secs to prevent flooding
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2506 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util/bbsrf.c')
-rw-r--r-- | util/bbsrf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/util/bbsrf.c b/util/bbsrf.c index 4999f993..ce1440e7 100644 --- a/util/bbsrf.c +++ b/util/bbsrf.c @@ -122,6 +122,7 @@ int main(void) } execl(BBSPROG, "mbbsd", hid, ttybuf, NULL); syslog(LOG_ERR, "execl(): %m"); + sleep(3); // prevent flooding rtv = -1; } break; |