Passing a pointer to process spawned with exec()

后端 未结 6 1297
花落未央
花落未央 2021-01-23 14:44

I would like to pass a pointer (I am putting a file with data in memory with mmap) to processes spawned using fork + exec, but I am stuck on how to pass a pointer to the exec()

6条回答
  •  星月不相逢
    2021-01-23 15:15

    This is a big area, and you have a lot to choose from.

    The key finding those solution is to search for something like Linux inter processor communication or maybe Linux IPC.

    A intro into IPC can also be found in books like, Advance Linux Programming (ISBN: 0-7357-1043-0)

提交回复
热议问题