Guest User

Untitled

a guest
Nov 18th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. char pipe[30];
  2. int fd, tmp = 2;
  3. sprintf(pipe, "root_%d", getpid());
  4. ret_val = mkfifo(pipe, 0666);
  5. fd = open(pipe, O_WRONLY);
  6. write(fd, &temp, sizeof(int));
  7. close(fd)
Add Comment
Please, Sign In to add comment