what is the problem of this code ? how to solved it ? (fork)
- by sb2367
what is the problem of this code ? how to solved it ? parent processes goto in my tag or child process ?
#include <signal.h>
#include <sys/wait.h>
main() {
for (;;) {
if (!fork()) {
exit(0);
}
sleep(1);
}
}