2000-11-10 02:23:25

by Stephen Rothwell

[permalink] [raw]
Subject: [PATCH] obvious change to apm.c

Hi Linus,

Obvious patch since daemonize() now does this stuff.

Cheers,
Stephen
--
Stephen Rothwell, Open Source Researcher, Linuxcare, Inc.
+61-2-62628990 tel, +61-2-62628991 fax
[email protected], http://www.linuxcare.com/
Linuxcare. Support for the revolution.

diff -ruN 2.4.0-test11pre2/arch/i386/kernel/apm.c 2.4.0-test11pre2-sfr/arch/i386/kernel/apm.c
--- 2.4.0-test11pre2/arch/i386/kernel/apm.c Wed Nov 1 09:36:12 2000
+++ 2.4.0-test11pre2-sfr/arch/i386/kernel/apm.c Fri Nov 10 13:20:28 2000
@@ -1422,9 +1422,6 @@

kapmd_running = 1;

- exit_files(current); /* daemonize doesn't do exit_files */
- current->files = init_task.files;
- atomic_inc(&current->files->count);
daemonize();

strcpy(current->comm, "kapm-idled");