summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-08-20 22:38:56 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-08-20 22:38:56 +0800
commitc9a012bd5ba0cab8b69565ae814821273793491d (patch)
tree2cdbf5bc712110e29fdc51ee30c3c5f90bcec7dd /util
parent1953245ff7c0c51fd63d6afd5033f8f51772a314 (diff)
downloadpttbbs-c9a012bd5ba0cab8b69565ae814821273793491d.tar
pttbbs-c9a012bd5ba0cab8b69565ae814821273793491d.tar.gz
pttbbs-c9a012bd5ba0cab8b69565ae814821273793491d.tar.bz2
pttbbs-c9a012bd5ba0cab8b69565ae814821273793491d.tar.lz
pttbbs-c9a012bd5ba0cab8b69565ae814821273793491d.tar.xz
pttbbs-c9a012bd5ba0cab8b69565ae814821273793491d.tar.zst
pttbbs-c9a012bd5ba0cab8b69565ae814821273793491d.zip
for vary OS
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1111 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util')
-rw-r--r--util/shmctl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/shmctl.c b/util/shmctl.c
index 1eb33bd1..750f0763 100644
--- a/util/shmctl.c
+++ b/util/shmctl.c
@@ -541,11 +541,14 @@ struct {
{SHMinit, "SHMinit", "initialize SHM (including uhash_loader)"},
{NULL, NULL, NULL} };
+extern char ** environ;
+
int main(int argc, char **argv)
{
int i = 0;
chdir(BBSHOME);
+ initsetproctitle(argc, argv, environ);
if( argc >= 2 ){
if( strcmp(argv[1], "init") == 0 ){
/* in this case, do NOT run attach_SHM here.