Re: [Cppcms-users] cppcms::service and system(..)
Brought to you by:
artyom-beilis
From: Artyom B. <art...@ya...> - 2012-07-19 13:40:14
|
----- Original Message ----- > From: Christian Gmeiner <chr...@gm...> > To: Artyom Beilis <art...@ya...>; cpp...@li... > Cc: > Sent: Thursday, July 19, 2012 3:58 PM > Subject: Re: [Cppcms-users] cppcms::service and system(..) > > 2012/7/19 Artyom Beilis <art...@ya...>: >> Make sure you do not call system from asynchronous application - call it >> only from thread pool >> > > The asynchronous application (javascript RPC) get the call to execute > a bash script Asynchronous JavaScript or Asynchronously mounted CppCMS Application/RPC http://cppcms.com/wikipp/en/page/cppcms_1x_application_lifetime I mean if you mount an application asynchronously than you can't call system from there as all I/O would be blocked by system > via system(..). How can I trigger the calling from thread pool? See in cppcms::service::thread_pool and cppcms::thread_pool documentation Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ > > thanks > --- > Christian Gmeiner, MSc > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |