This repository has been archived on 2026-07-28. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
cmc/3sem/cnts/contest11/01.c
T
2025-04-13 21:48:15 +03:00

23 lines
268 B
C
Executable File

#include <unistd.h>
#include <sys/types.h>
#include <wait.h>
#include <stdio.h>
int
proc(void)
{
int pid = fork();
if (!pid) {
write(1, "1\n", 2);
}
return pid;
}
int
main(int argc, char **argv)
{
proc(), proc(), proc();
return 0;
}