lkml.org 
[lkml]   [2000]   [Jul]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: Oops in 2.4.0-test4 (its still this one introduced in
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/

\
 
 \ /
  Last update: 2005-03-22 13:57    [W:0.053 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site