How do I keep this file open even after the process is over?

后端 未结 0 481
忘掉有多难
忘掉有多难 2020-11-27 10:58

int OpenFile(char *path, int flag, int clientPid) {

int fd;
int result_snd;

if ((fd = open(path, flag, PERMS)) == -1) {
    perror("system call open() e         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题