summaryrefslogtreecommitdiffstats
path: root/util/bbsrf.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-02-12 22:28:54 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-02-12 22:28:54 +0800
commitf74bbaea321b54daa355038bc4131bfd7c2af136 (patch)
treee52cd5484348ad57f218e1e90bd12bb41cb3159c /util/bbsrf.c
parent7c3e5a8f77da376fddc9a38adc2052913c774f2d (diff)
downloadpttbbs-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.c1
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;