diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-09-29 02:38:24 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-09-29 02:38:24 +0000 |
commit | ad47ba605da588ac2618782de36573c81059dd7b (patch) | |
tree | 423f20dd59ab62da1d25f3a345f231de3b8a54f6 /asterisk.c | |
parent | 83fdaa72f7001d2f2260b81ea15e0bdcb14b3124 (diff) |
install 'rasterisk' symlink and update process name when used remotely (issue #5318 with minor mod)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6688 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'asterisk.c')
-rwxr-xr-x | asterisk.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/asterisk.c b/asterisk.c index 2aa7c0c52..e1842fb86 100755 --- a/asterisk.c +++ b/asterisk.c @@ -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)); |