Answer the question
In order to leave comments, you need to log in
Why does execl exit the process?
I fork the process, in it I run another program with the help of execl. I do this in a loop:
pid_t pid = fork();
if (pid == 0) {
while(1) {
execl(...);
}
}
Answer the question
In order to leave comments, you need to log in
You need to do `fork()` first, and then `execl()` inside the new process.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question