From 32bde5b00967229e74942137130904dc07f224cd Mon Sep 17 00:00:00 2001 From: James Golovich Date: Sat, 20 Mar 2004 07:26:54 +0000 Subject: 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 --- asterisk.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'asterisk.c') 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, "", sizeof(hostname)-1); mainpid = getpid(); -- cgit v1.2.3