[Freeswitch-users] Fork( ) and Exec ( ) functions

Abdul Hakeem alhakeem at gmail.com
Sat Jan 24 06:33:57 MSK 2015


Thanks guys.
I’ll do battle with the makefile next week & see how it goes.
 
From: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Anthony Minessale
Sent: Monday, January 19, 2015 5:12 PM
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] Fork( ) and Exec ( ) functions
 
We use threads by default in the switch system.  There is a setting to use fork instead but it's disabled by default.  The system syscall uses fork and exec on its own so maybe you just need to make sure ifdefs properly disable any such functionality.

On Monday, January 19, 2015, Michael Jerris <mike at jerris.com> wrote:
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.


> On Jan 18, 2015, at 3:48 PM, Sergey Okhapkin <sos at sokhapkin.dyndns.org <javascript:;> > wrote:
>
> Usually fork-less OSes provide spawn() family of syscalls to execute a new
> process.
>
> On Sunday 18 January 2015 20:32:02 Abdul Hakeem wrote:
>> Hello again,
>> The reason I ask is because I am trying to port FS to OSv.
>> Unfortunately,  Fork ( )  is unsupported in OSv.
>> Regards,
>> Abdul Hakeem
>>
>> From: freeswitch-users-bounces at lists.freeswitch.org <javascript:;> 
>> [mailto:freeswitch-users-bounces at lists.freeswitch.org <javascript:;> ] On Behalf Of Moises
>> Silva Sent: Tuesday, January 13, 2015 5:11 PM
>> To: FreeSWITCH Users Help
>> Subject: Re: [Freeswitch-users] Fork( ) and Exec ( ) functions
>>
>> On Tue, Jan 13, 2015 at 8:11 AM, Abdul Hakeem <alhakeem at gmail.com <javascript:;> > wrote:
>> Hello,
>>
>> I understand FS makes system calls for sending mails, voicemail and fax.
>> Can anyone guide me on how to mitigate the load of fork ( ) and exec( ) on
>> system calls & also,  a list of functions which require FS to make system
>> calls ?
>>
>> Not making much sense here. Everything in FS relies heavily on system calls
>> as it's a multi-threaded-I/O-driven system for the most part. I think
>> you're asking the wrong question.

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org <javascript:;> 
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org <javascript:;> 
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


-- 
Anthony Minessale II       ♬ @anthmfs  ♬ @FreeSWITCH  ♬
 
☞ http://freeswitch.org/http://cluecon.com/http://twitter.com/FreeSWITCH
☞ irc.freenode.net #freeswitch ☞ http://freeswitch.org/g+
ClueCon Weekly Development Call 
☎ sip:888 at conference.freeswitch.org <mailto:sip%3A888 at conference.freeswitch.org>   ☎ +19193869900 
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150124/151c9e70/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list