diff options
author | bweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-07 12:48:09 +0000 |
---|---|---|
committer | bweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-07 12:48:09 +0000 |
commit | ba8061b8103021aebd0f06915328b7c1026da91a (patch) | |
tree | 36221a0e8619405f1762dc8f65b73e0c53e838b3 | |
parent | 05148809847d5647ae7448ed1965f94d916a3350 (diff) |
Reset the value of ast_mainpid if we fork so future remote unix connections display the correct PID. #7098 (tzafrir reporting)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@25288 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | asterisk.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/asterisk.c b/asterisk.c index c62442d09..334d322df 100644 --- a/asterisk.c +++ b/asterisk.c @@ -2293,6 +2293,7 @@ int main(int argc, char *argv[]) fclose(f); } else ast_log(LOG_WARNING, "Unable to open pid file '%s': %s\n", (char *)ast_config_AST_PID, strerror(errno)); + ast_mainpid = getpid(); } /* Test recursive mutex locking. */ |