2 ms·
I like to use this construct: pid_t pid = fork(); switch (pid) { case -1: error case 0: child default: parent }
by izabera 7y ago
I like to use this construct:
pid_t pid = fork();
switch (pid) {
case -1: error
case 0: child
default: parent
}