]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Reset the value of ast_mainpid if we fork so future remote unix connections display...
authorBJ Weschke <bweschke@btwtech.com>
Sun, 7 May 2006 12:48:09 +0000 (12:48 +0000)
committerBJ Weschke <bweschke@btwtech.com>
Sun, 7 May 2006 12:48:09 +0000 (12:48 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@25288 65c4cc65-6c06-0410-ace0-fbb531ad65f3

asterisk.c

index c62442d09b5ab4c7454b87805c9956c37f015131..334d322df4575b1198c7609c37c0bbcd6334d7df 100644 (file)
@@ -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. */