summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-01-03 17:31:43 +0800
committerscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-01-03 17:31:43 +0800
commitd9dd9c420e7d6429c8e941a5c7a83d7381dfef5e (patch)
treec0e1b7d36c3d51971eaa0ddd1c474cc64201b7c3 /util
parent1c15c5951efa5d86aea9a23d1516af3eea175eb1 (diff)
downloadpttbbs-d9dd9c420e7d6429c8e941a5c7a83d7381dfef5e.tar
pttbbs-d9dd9c420e7d6429c8e941a5c7a83d7381dfef5e.tar.gz
pttbbs-d9dd9c420e7d6429c8e941a5c7a83d7381dfef5e.tar.bz2
pttbbs-d9dd9c420e7d6429c8e941a5c7a83d7381dfef5e.tar.lz
pttbbs-d9dd9c420e7d6429c8e941a5c7a83d7381dfef5e.tar.xz
pttbbs-d9dd9c420e7d6429c8e941a5c7a83d7381dfef5e.tar.zst
pttbbs-d9dd9c420e7d6429c8e941a5c7a83d7381dfef5e.zip
Remove altering wbtime in nkwbd, avoiding race.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1454 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util')
-rw-r--r--util/shmctl.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/util/shmctl.c b/util/shmctl.c
index 731fe358..1b7d5350 100644
--- a/util/shmctl.c
+++ b/util/shmctl.c
@@ -536,7 +536,6 @@ int nkwbd(int argc, char **argv)
SHM->uinfo[i].wbtime &&
SHM->uinfo[i].wbtime < t ){
kill(SHM->uinfo[i].pid, SIGUSR2);
- SHM->uinfo[i].wbtime = 0; /* race */
}
sleep(sleeptime);
}