From 2aee618ec1a61abaebf38ed43e196c1a588aeb2d Mon Sep 17 00:00:00 2001 From: victor Date: Wed, 20 Aug 2003 14:38:56 +0000 Subject: for vary OS git-svn-id: http://opensvn.csie.org/pttbbs/trunk@1111 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- pttbbs/util/shmctl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pttbbs/util/shmctl.c b/pttbbs/util/shmctl.c index 1eb33bd1..750f0763 100644 --- a/pttbbs/util/shmctl.c +++ b/pttbbs/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. -- cgit v1.2.3