install 'rasterisk' symlink and update process name when used remotely (issue #5318 with minor mod)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6688 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming
2005-09-29 02:38:24 +00:00
parent ea215f5b7d
commit 61a0f7a65e
2 changed files with 11 additions and 0 deletions

View File

@@ -1969,6 +1969,16 @@ int main(int argc, char *argv[])
}
}
/* For remote connections, change the name of the remote connection.
* We do this for the benefit of init scripts (which need to know if/when
* the main asterisk process has died yet). */
if (option_remote) {
strcpy(argv[0], "rasterisk");
for (x = 1; x < argc; x++) {
argv[x] = argv[0] + 10;
}
}
if (option_dumpcore) {
struct rlimit l;
memset(&l, 0, sizeof(l));