Re: Oops in 2.4.0-test4 (its still this one introduced in

From: Arjan van de Ven (arjan@fenrus.demon.nl)
Date: Sun Jul 16 2000 - 12:13:04 EST


In article <NCBBIODJDAHHMNHHMKLAIEOJEHAA.sonnenburg@informatik.hu-berlin.de> you wrote:

> I've found the kernel thread. It is khttpd... I must admit that I didn't
> read the docs where its clearly stated that it khttpd should be loaded as a
> module...

I think the patch below should fix it. I will stress-test it shortly and
then send it to Linus.

Greetings,
   Arjan van de Ven

--- linux/net/khttpd/main.c.org Sat Jul 15 20:25:59 2000
+++ linux/net/khttpd/main.c Sat Jul 15 20:26:34 2000
@@ -277,7 +277,7 @@
                 while (I<ActualThreads)
                 {
                         atomic_set(&Running[I],1);
- (void)kernel_thread(MainDaemon,&(CountBuf[I]),0);
+ (void)kernel_thread(MainDaemon,&(CountBuf[I]), CLONE_FS | CLONE_FILES | CLONE_SIGHAND);
                         I++;
                 }
                 
@@ -294,7 +294,7 @@
                                         if (atomic_read(&Running[I])==0)
                                         {
                                                 atomic_set(&Running[I],1);
- (void)kernel_thread(MainDaemon,&(CountBuf[I]),0);
+ (void)kernel_thread(MainDaemon,&(CountBuf[I]), CLONE_FS | CLONE_FILES | CLONE_SIGHAND);
                                                 (void)printk(KERN_CRIT "kHTTPd: Restarting daemon %i \n",I);
                                         }
                                         I++;
@@ -383,7 +383,7 @@
 
         StartSysctl();
         
- (void)kernel_thread(ManagementDaemon,NULL,0);
+ (void)kernel_thread(ManagementDaemon,NULL, CLONE_FS | CLONE_FILES | CLONE_SIGHAND);
         
         return 0;
 }

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Jul 23 2000 - 21:00:08 EST