/* * write-to-fd3.c */ #include #include #include #include int main(int argc, char *argv[]) { pid_t my_pid; char s[40]; my_pid = getpid(); snprintf(s, 40, "Hello again from process %d\n", my_pid); write(3, s, strlen(s)); close(3); }