<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 <<a href="mailto:alhakeem@gmail.com" class="">alhakeem@gmail.com</a>> 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 & 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=""> </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"> </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"> </span><b class="">On Behalf Of<span class="Apple-converted-space"> </span></b>Anthony Minessale<br class=""><b class="">Sent:</b><span class="Apple-converted-space"> </span>Monday, January 19, 2015 5:12 PM<br class=""><b class="">To:</b><span class="Apple-converted-space"> </span>FreeSWITCH Users Help<br class=""><b class="">Subject:</b><span class="Apple-converted-space"> </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=""> </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. There is a setting to use fork instead but it's disabled by default. The system<span class="Apple-converted-space"> </span><span class="SpellE">syscall</span><span class="Apple-converted-space"> </span>uses fork and exec on its own so maybe you just need to make sure<span class="Apple-converted-space"> </span><span class="SpellE">ifdefs</span><span class="Apple-converted-space"> </span>properly disable any such functionality.<br class=""><br class="">On Monday, January 19, 2015, Michael<span class="Apple-converted-space"> </span><span class="SpellE">Jerris</span><span class="Apple-converted-space"> </span><<a href="mailto:mike@jerris.com" style="color: purple; text-decoration: underline;" class="">mike@jerris.com</a>> 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. The places I know of that use these functions. <span class="Apple-converted-space"> </span><span class="SpellE">switch_system</span><span class="Apple-converted-space"> </span>(used for executing external commands and sending emails), and<span class="Apple-converted-space"> </span><span class="SpellE">daemonizing</span><span class="Apple-converted-space"> </span>FreeSWITCH.<br class=""><br class=""><br class="">> On Jan 18, 2015, at 3:48 PM, Sergey<span class="Apple-converted-space"> </span><span class="SpellE">Okhapkin</span><span class="Apple-converted-space"> </span><<a class="">sos@sokhapkin.dyndns.org</a>> wrote:<br class="">><br class="">> Usually fork-less<span class="Apple-converted-space"> </span><span class="SpellE">OSes</span><span class="Apple-converted-space"> </span>provide spawn() family of<span class="Apple-converted-space"> </span><span class="SpellE">syscalls</span><span class="Apple-converted-space"> </span>to execute a new<br class="">> process.<br class="">><br class="">> On Sunday 18 January 2015 20:32:02 Abdul Hakeem wrote:<br class="">>> Hello again,<br class="">>> The reason I ask is because I am trying to port FS to<span class="Apple-converted-space"> </span><span class="SpellE">OSv</span>.<br class="">>> Unfortunately, Fork ( ) is unsupported in<span class="Apple-converted-space"> </span><span class="SpellE">OSv</span>.<br class="">>> Regards,<br class="">>> Abdul Hakeem<br class="">>><br class="">>> From:<span class="Apple-converted-space"> </span><a class="">freeswitch-users-bounces@lists.freeswitch.org</a><br class="">>> [mailto:<a class="">freeswitch-users-bounces@lists.freeswitch.org</a>] On Behalf Of Moises<br class="">>> Silva Sent: Tuesday, January 13, 2015 5:11 PM<br class="">>> To: FreeSWITCH Users Help<br class="">>> Subject: Re: [Freeswitch-users] Fork( ) and Exec ( ) functions<br class="">>><br class="">>> On Tue, Jan 13, 2015 at 8:11 AM, Abdul Hakeem <<a class="">alhakeem@gmail.com</a>> wrote:<br class="">>> Hello,<br class="">>><br class="">>> I understand FS makes system calls for sending mails, voicemail and fax.<br class="">>> Can anyone guide me on how to mitigate the load of fork ( ) and exec( ) on<br class="">>> system calls & also, a list of functions which require FS to make system<br class="">>> calls ?<br class="">>><br class="">>> Not making much sense here. Everything in FS relies heavily on system calls<br class="">>> as it's a multi-threaded-I/O-driven system for the most part. I think<br class="">>> you're asking the wrong question.<br class=""></div></div></div></blockquote></div><br class=""></div></body></html>