|
From: Nicholas N. <n.n...@gm...> - 2009-01-19 05:53:24
|
Hi,
none/tests/execve.c looks like this:
------------------------------
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
int main(int argc, char **argv)
{
if (argc == 1)
{
if (execve(argv[0], NULL, NULL) < 0)
{
perror("execve");
exit(1);
}
}
exit(0);
}
--------------------------------
Any ideas what this is meant to demonstrate? I don't even understand
it, it looks to me like it should go into an infinite loop, just
repeatedly execve'ing itself. Any explanations are welcome...
N
|