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@sokhapkin.dyndns.org> 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@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] 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@gmail.com> 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.