You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running cFS over Linux on an x86-64 machine. In the main function of my cFS app, I have created a thread through pthread_create(). Inside this thread, I read from a socket, and on receiving data I call another function that sends this data over the software bus. However, here the call to CFE_SB_AllocateMessageBuffer() always fails and returns NULL. On further inspection, the call to CFE_ES_GetAppID() is failing. This was never happening when the app was single-threaded. Any fixes for this?
Could you help me understand the consequences of using native OS APIs instead of cFE/OSAL-specific ones? For operations tarring or copying files, I'm using system("cp a b"); or system("tar -xvf cpu1.tar.xz"); and these are behaving unreliably. Is there any way to do this through OSAL/cFE APIs? If not, is it dangerous to use Linux' system() function?
I am running cFS over Linux on an x86-64 machine. In the
main
function of my cFS app, I have created a thread throughpthread_create()
. Inside this thread, I read from a socket, and on receiving data I call another function that sends this data over the software bus. However, here the call toCFE_SB_AllocateMessageBuffer()
always fails and returnsNULL
. On further inspection, the call toCFE_ES_GetAppID()
is failing. This was never happening when the app was single-threaded. Any fixes for this?CC: @rkshthrmsh
The text was updated successfully, but these errors were encountered: