The following example runs hcidump on a child thread. This happens to be a bluetooth bluez tool which continuously outputs events as it seens them. This code allows this to happen on a child thread with the output passed back to the main application thread using a named pipe. Create the pipe and the child thread process […]
Category: Threads
Forking A New Thread
Call On A Background Thread fork creates a clone of the current process on a new thread. Use with execlp to trigger other processes, e.g. open another application Do something that might take a while without waiting example IMPORTANT NOTE: The child process once it dies remains in the Linux process table marked as <defunct>. You’ll […]