summaryrefslogtreecommitdiffstats
path: root/util/shmctl.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-04-10 18:39:09 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-04-10 18:39:09 +0800
commit3ea1eb00314e9f405e570772e01139e707c100eb (patch)
tree20d1700ca23288aac9aff624fc35729d9ccabb1d /util/shmctl.c
parent5af17add039df5d82353326cad378da8bf2556ff (diff)
downloadpttbbs-3ea1eb00314e9f405e570772e01139e707c100eb.tar
pttbbs-3ea1eb00314e9f405e570772e01139e707c100eb.tar.gz
pttbbs-3ea1eb00314e9f405e570772e01139e707c100eb.tar.bz2
pttbbs-3ea1eb00314e9f405e570772e01139e707c100eb.tar.lz
pttbbs-3ea1eb00314e9f405e570772e01139e707c100eb.tar.xz
pttbbs-3ea1eb00314e9f405e570772e01139e707c100eb.tar.zst
pttbbs-3ea1eb00314e9f405e570772e01139e707c100eb.zip
fix bug
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@96 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util/shmctl.c')
-rw-r--r--util/shmctl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/shmctl.c b/util/shmctl.c
index 0205681f..1453126a 100644
--- a/util/shmctl.c
+++ b/util/shmctl.c
@@ -67,6 +67,7 @@ int utmpfix(int argc, char **argv)
clean = "userid error";
else if( now - utmpshm->uinfo[i].lastact > 1800 ){
clean = "timeout";
+ kill(utmpshm->uinfo[i].pid, SIGHUP);
purge_utmp(&utmpshm->uinfo[i]);
}
else{