clone is not meant to be used by user applications, it is for thread libraries. u need a form of IPC, inter process communication. u could use a pipe, created by pipe() system call, or a FIFO, created by mkfifo() and opened with open(), or a message queue, created with msgget() (man 5 ipc). or shared memory. i suggest a google on 'unix ipc'
|