blob: 367dc0194eaf6f040873152ad01aaf4fcd7730bf [file] [log] [blame]
#include <stdlib.h>
#include <unistd.h>
int main(int argc, char *argv[])
{
if (vfork() == 0) {
write(1, "child\n", 6);
} else {
wait(0);
write(1, "parent\n", 7);
}
exit(0);
}