diff options
author | citats <citats@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-03-20 07:26:54 +0000 |
---|---|---|
committer | citats <citats@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-03-20 07:26:54 +0000 |
commit | e0b3f1f410e3a7c2dc24f15eb1ca3fb7221cbdec (patch) | |
tree | 0d82c7712efd4e42f8b5d9c55d0b735bb3cde6ee /asterisk.c | |
parent | 12b4d5a8afe1ac2d3a7a7e8ce73634187cf99011 (diff) |
If asterisk is started with progname of 'rasterisk' assume its a remote
console (bug 842)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2491 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'asterisk.c')
-rwxr-xr-x | asterisk.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/asterisk.c b/asterisk.c index 7adb02790..9cff2c73d 100755 --- a/asterisk.c +++ b/asterisk.c @@ -1264,6 +1264,11 @@ int main(int argc, char *argv[]) _argv[x] = argv[x]; _argv[x] = NULL; + /* if the progname is rasterisk consider it a remote console */ + if ( argv[0] && (strstr(argv[0], "rasterisk")) != NULL) { + option_remote++; + option_nofork++; + } if (gethostname(hostname, sizeof(hostname))) strncpy(hostname, "<Unknown>", sizeof(hostname)-1); mainpid = getpid(); |