[Asterisk-cvs] asterisk asterisk.c,1.58,1.59

citats at lists.digium.com citats at lists.digium.com
Sat Mar 20 02:31:25 CST 2004


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv10017

Modified Files:
	asterisk.c 
Log Message:
If asterisk is started with progname of 'rasterisk' assume its a remote
console (bug 842)


Index: asterisk.c
===================================================================
RCS file: /usr/cvsroot/asterisk/asterisk.c,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -d -r1.58 -r1.59
--- asterisk.c	15 Mar 2004 07:51:22 -0000	1.58
+++ asterisk.c	20 Mar 2004 07:26:54 -0000	1.59
@@ -1264,6 +1264,11 @@
 		_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();




More information about the svn-commits mailing list