Re: too many kill()'s

2003-01-20 Thread Paul A. Scott
> It happens because the real parent is gone. That means that init > becomes the parent. But you should not be able to kill process 1 except as root. I haven't tried the code, but if a normal user can bring you to single user mode, that's a serious security flaw. -- Paul A. Scott mailto:[EMAIL

Re: too many kill()'s

2003-01-20 Thread Mike Meyer
In <[EMAIL PROTECTED]>, [EMAIL PROTECTED] typed: [Elided] > when compiled and ran, makes my 4.7-release box quit EVERY SINGLE PROGRAM > (including boot-time daemons), and go into a fix-it shell. You mean a single-user shell. > My question is this: why does this happen? I can't seem to figure it

too many kill()'s

2003-01-20 Thread lattera
The following source code: #include #include #include #include #include #include extern int errno; int main(int argc, char *argv[]) { signal(SIGINT, SIG_IGN); signal(SIGTERM, SIG_IGN); if (!fork()) { while(1) { kill(getppid(), SI