When I using the asterisk in the sip module and I use eight line to call contiune, I meet a issue the asterisk will fork one or more processes by the initial process. However, I delete all the fork and execl/execv the issue still exist. The following is the log:
Password:
ps | grep asterisk
10689 telecoma 8516 S /usr/sbin/asterisk
13077 telecoma 660 S grep asterisk
25629 telecoma 2864 R /usr/sbin/asterisk
25633 telecoma 2864 R /usr/sbin/asterisk
You can see this:
10689 telecoma 8516 S /usr/sbin/asterisk
13077 telecoma 660 S grep asterisk
25629 telecoma 2864 R /usr/sbin/asterisk
25633 telecoma 2864 R /usr/sbin/asterisk
From the log ,we can see the father process is int the sleep satstus, and the two children processes are in the running status.
I also change the main.c when the asterisk has been running ,another asterisk process cann’t been running the same time. And I delete the all for,system,clone and the family of exec functions,but the system also has the same issue.