diff options
author | James Golovich <james@gnuinter.net> | 2004-03-20 07:26:54 +0000 |
---|---|---|
committer | James Golovich <james@gnuinter.net> | 2004-03-20 07:26:54 +0000 |
commit | 32bde5b00967229e74942137130904dc07f224cd (patch) | |
tree | 0d82c7712efd4e42f8b5d9c55d0b735bb3cde6ee /asterisk.c | |
parent | af6016cfd01117135950c8d962b0dd0c6d73af36 (diff) |
If asterisk is started with progname of 'rasterisk' assume its a remote
console (bug 842)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2491 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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(); |