Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Apache running as root?
- Date: Tue, 28 May 2002 09:18:17 -0400
- From: Viktor Pavlenko <vvp@example.com>
- Subject: Re: [tlug] Apache running as root?
- References: <200205280856.g4S8ugn27816@example.com><20020528181308.B424-100000@example.com>
>>>>> "TM" == Tod McQuillin <devin@example.com> writes: TM> No. The parent can exit without killing its children. ... because they are inherited by init which will then wait for them as every normal UNIX parent would. TM> #include <unistd.h> TM> #include <stdio.h> TM> int main() TM> { TM> int i; TM> switch (fork()) { TM> case 0: /* child */ TM> for (i = 1; i <= 5; ++i) { TM> sleep(1); TM> printf("child alive for %d seconds\n", i); printf("child alive for %d seconds, parent pid = %d\n", i, getppid()); TM> } TM> return 0; TM> case -1: /* error */ TM> perror("fork"); TM> return 1; TM> default: /* parent */ TM> printf("parent exiting\n"); TM> return 0; TM> } TM> } regards Viktor
- References:
- Re: [tlug] Apache running as root?
- From: Christopher SEKIYA
- Re: [tlug] Apache running as root?
- From: Tod McQuillin
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Sendmail's log?
- Next by Date: Re: [tlug] Apache running as root?
- Previous by thread: Re: [tlug] Apache running as root?
- Next by thread: Re: [tlug] Apache running as root?
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links