We use threads by default in the switch system. There is a setting to use fork instead but it's disabled by default. The <span></span>system syscall uses fork and exec on its own so maybe you just need to make sure ifdefs properly disable any such functionality.<br><br>On Monday, January 19, 2015, Michael Jerris <<a href="mailto:mike@jerris.com">mike@jerris.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You can also look at how we have addressed this issue for windows. The places I know of that use these functions. switch_system (used for executing external commands and sending emails), and daemonizing FreeSWITCH.<br>
<br>
<br>
> On Jan 18, 2015, at 3:48 PM, Sergey Okhapkin <<a href="javascript:;" onclick="_e(event, 'cvml', 'sos@sokhapkin.dyndns.org')">sos@sokhapkin.dyndns.org</a>> wrote:<br>
><br>
> Usually fork-less OSes provide spawn() family of syscalls to execute a new<br>
> process.<br>
><br>
> On Sunday 18 January 2015 20:32:02 Abdul Hakeem wrote:<br>
>> Hello again,<br>
>> The reason I ask is because I am trying to port FS to OSv.<br>
>> Unfortunately, Fork ( ) is unsupported in OSv.<br>
>> Regards,<br>
>> Abdul Hakeem<br>
>><br>
>> From: <a href="javascript:;" onclick="_e(event, 'cvml', 'freeswitch-users-bounces@lists.freeswitch.org')">freeswitch-users-bounces@lists.freeswitch.org</a><br>
>> [mailto:<a href="javascript:;" onclick="_e(event, 'cvml', 'freeswitch-users-bounces@lists.freeswitch.org')">freeswitch-users-bounces@lists.freeswitch.org</a>] On Behalf Of Moises<br>
>> Silva Sent: Tuesday, January 13, 2015 5:11 PM<br>
>> To: FreeSWITCH Users Help<br>
>> Subject: Re: [Freeswitch-users] Fork( ) and Exec ( ) functions<br>
>><br>
>> On Tue, Jan 13, 2015 at 8:11 AM, Abdul Hakeem <<a href="javascript:;" onclick="_e(event, 'cvml', 'alhakeem@gmail.com')">alhakeem@gmail.com</a>> wrote:<br>
>> Hello,<br>
>><br>
>> I understand FS makes system calls for sending mails, voicemail and fax.<br>
>> Can anyone guide me on how to mitigate the load of fork ( ) and exec( ) on<br>
>> system calls & also, a list of functions which require FS to make system<br>
>> calls ?<br>
>><br>
>> Not making much sense here. Everything in FS relies heavily on system calls<br>
>> as it's a multi-threaded-I/O-driven system for the most part. I think<br>
>> you're asking the wrong question.<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="javascript:;" onclick="_e(event, 'cvml', 'consulting@freeswitch.org')">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="javascript:;" onclick="_e(event, 'cvml', 'FreeSWITCH-users@lists.freeswitch.org')">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote><br><br>-- <br><div dir="ltr">Anthony Minessale II ♬ @anthmfs ♬ @FreeSWITCH ♬<div><br><div>☞ <a href="http://freeswitch.org/" target="_blank">http://freeswitch.org/</a> ☞ <a href="http://cluecon.com/" target="_blank">http://cluecon.com/</a> ☞ <a href="http://twitter.com/FreeSWITCH" target="_blank">http://twitter.com/FreeSWITCH</a></div><div><div>☞ <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch ☞ <u><a href="http://freeswitch.org/g+" target="_blank">http://freeswitch.org/g+</a></u><br><br></div><div>ClueCon Weekly Development Call <br></div><div>☎ <a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a> ☎ +19193869900 </div><div><br></div></div></div></div><br>