]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
annoy CtRiX
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 29 Jan 2009 00:17:33 +0000 (00:17 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 29 Jan 2009 00:17:33 +0000 (00:17 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11546 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch.c

index eb35de4603307bf668b86999f2f376e64a1469eb..19e0578efa04d805f053f65d7a43f8c023b7be95 100644 (file)
@@ -275,6 +275,10 @@ int main(int argc, char *argv[])
        switch_file_t *fd;
        switch_memory_pool_t *pool = NULL;
 
+       if (argv[0] && strstr(argv[0], "freeswitchd")) {
+               nc++;
+       }
+
        usageDesc = "these are the optional arguments you can pass to freeswitch\n"
 #ifdef WIN32
                "\t-service [name]  -- start freeswitch as a service, cannot be used if loaded as a console app\n"