Skip to content

Instantly share code, notes, and snippets.

View ahmaadsaim's full-sized avatar

Saim Ahmad ahmaadsaim

View GitHub Profile
#include <stdio.h>
#include <unistd.h>
#include <sys/wait.h>
#include <stdlib.h>
int main() {
pid_t child, grandchild;
int status;
printf("Parent (PID=%d) started.\n", getpid());