On Mon, Apr 13, 2015 at 12:01:25PM +0500, david jhon wrote: > I want to run a command from inside openvswitch code from > ofproto/ofproto-dpif-xlate.c. with popen(), openvswitch compiles and runs > successfully but it does not run command. > > With system(), openvswitch fails to compile with following error: > > blacklisted due to thread safety issues. I tried running system command > with ovs_mutex lock and unlock routines, but it makes no difference. > > Please let me know what am I doing wrong here. How could a linux command be > run from openvswitch. Your help/guidance in this regard will be highly > valuable and appreciated.
It's probably a bad idea to do this. The error is because POSIX says that system() need not be thread safe. There may be a better way to accomplish what you're trying to do. What are you trying to do? _______________________________________________ discuss mailing list [email protected] http://openvswitch.org/mailman/listinfo/discuss
