#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> int main(int argc, char* argv[]) { int id = fork(); if (id != 0) { fork(); } printf("Hello world\n"); return 0; }
If you find our content useful and has helped you in the past, you can help the CodeVault community grow by becoming a CodeVault supporter