<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">most likely this is going to require you to make code changes, not just makefile changes.<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 23, 2015, at 10:33 PM, Abdul Hakeem &lt;<a href="mailto:alhakeem@gmail.com" class="">alhakeem@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="WordSection1" style="page: WordSection1; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="" class="">Thanks guys.<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="" class="">I’ll do battle with the makefile next week &amp; see how it goes.<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><a name="_MailEndCompose" class="">&nbsp;</a></div><span class=""></span><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><b class=""><span lang="EN-US" style="font-size: 10pt; font-family: Tahoma, sans-serif;" class="">From:</span></b><span lang="EN-US" style="font-size: 10pt; font-family: Tahoma, sans-serif;" class=""><span class="Apple-converted-space">&nbsp;</span><a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" class="">freeswitch-users-bounces@lists.freeswitch.org</a> [<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" class="">mailto:freeswitch-users-bounces@lists.freeswitch.org</a>]<span class="Apple-converted-space">&nbsp;</span><b class="">On Behalf Of<span class="Apple-converted-space">&nbsp;</span></b>Anthony Minessale<br class=""><b class="">Sent:</b><span class="Apple-converted-space">&nbsp;</span>Monday, January 19, 2015 5:12 PM<br class=""><b class="">To:</b><span class="Apple-converted-space">&nbsp;</span>FreeSWITCH Users Help<br class=""><b class="">Subject:</b><span class="Apple-converted-space">&nbsp;</span>Re: [Freeswitch-users] Fork( ) and Exec ( ) functions<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><o:p class="">&nbsp;</o:p></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class="">We use threads by default in the switch system.&nbsp; There is a setting to use fork instead but it's disabled by default.&nbsp; The&nbsp;system<span class="Apple-converted-space">&nbsp;</span><span class="SpellE">syscall</span><span class="Apple-converted-space">&nbsp;</span>uses fork and exec on its own so maybe you just need to make sure<span class="Apple-converted-space">&nbsp;</span><span class="SpellE">ifdefs</span><span class="Apple-converted-space">&nbsp;</span>properly disable any such functionality.<br class=""><br class="">On Monday, January 19, 2015, Michael<span class="Apple-converted-space">&nbsp;</span><span class="SpellE">Jerris</span><span class="Apple-converted-space">&nbsp;</span>&lt;<a href="mailto:mike@jerris.com" style="color: purple; text-decoration: underline;" class="">mike@jerris.com</a>&gt; wrote:<o:p class=""></o:p></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class="">You can also look at how we have addressed this issue for windows.&nbsp; The places I know of that use these functions.&nbsp;<span class="Apple-converted-space">&nbsp;</span><span class="SpellE">switch_system</span><span class="Apple-converted-space">&nbsp;</span>(used for executing external commands and sending emails), and<span class="Apple-converted-space">&nbsp;</span><span class="SpellE">daemonizing</span><span class="Apple-converted-space">&nbsp;</span>FreeSWITCH.<br class=""><br class=""><br class="">&gt; On Jan 18, 2015, at 3:48 PM, Sergey<span class="Apple-converted-space">&nbsp;</span><span class="SpellE">Okhapkin</span><span class="Apple-converted-space">&nbsp;</span>&lt;<a class="">sos@sokhapkin.dyndns.org</a>&gt; wrote:<br class="">&gt;<br class="">&gt; Usually fork-less<span class="Apple-converted-space">&nbsp;</span><span class="SpellE">OSes</span><span class="Apple-converted-space">&nbsp;</span>provide spawn() family of<span class="Apple-converted-space">&nbsp;</span><span class="SpellE">syscalls</span><span class="Apple-converted-space">&nbsp;</span>to execute a new<br class="">&gt; process.<br class="">&gt;<br class="">&gt; On Sunday 18 January 2015 20:32:02 Abdul Hakeem wrote:<br class="">&gt;&gt; Hello again,<br class="">&gt;&gt; The reason I ask is because I am trying to port FS to<span class="Apple-converted-space">&nbsp;</span><span class="SpellE">OSv</span>.<br class="">&gt;&gt; Unfortunately,&nbsp; Fork ( )&nbsp; is unsupported in<span class="Apple-converted-space">&nbsp;</span><span class="SpellE">OSv</span>.<br class="">&gt;&gt; Regards,<br class="">&gt;&gt; Abdul Hakeem<br class="">&gt;&gt;<br class="">&gt;&gt; From:<span class="Apple-converted-space">&nbsp;</span><a class="">freeswitch-users-bounces@lists.freeswitch.org</a><br class="">&gt;&gt; [mailto:<a class="">freeswitch-users-bounces@lists.freeswitch.org</a>] On Behalf Of Moises<br class="">&gt;&gt; Silva Sent: Tuesday, January 13, 2015 5:11 PM<br class="">&gt;&gt; To: FreeSWITCH Users Help<br class="">&gt;&gt; Subject: Re: [Freeswitch-users] Fork( ) and Exec ( ) functions<br class="">&gt;&gt;<br class="">&gt;&gt; On Tue, Jan 13, 2015 at 8:11 AM, Abdul Hakeem &lt;<a class="">alhakeem@gmail.com</a>&gt; wrote:<br class="">&gt;&gt; Hello,<br class="">&gt;&gt;<br class="">&gt;&gt; I understand FS makes system calls for sending mails, voicemail and fax.<br class="">&gt;&gt; Can anyone guide me on how to mitigate the load of fork ( ) and exec( ) on<br class="">&gt;&gt; system calls &amp; also,&nbsp; a list of functions which require FS to make system<br class="">&gt;&gt; calls ?<br class="">&gt;&gt;<br class="">&gt;&gt; Not making much sense here. Everything in FS relies heavily on system calls<br class="">&gt;&gt; as it's a multi-threaded-I/O-driven system for the most part. I think<br class="">&gt;&gt; you're asking the wrong question.<br class=""></div></div></div></blockquote></div><br class=""></div></body></html>