summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorHolger Waechtler <devnull@localhost>2002-12-04 11:00:25 +0000
committerHolger Waechtler <devnull@localhost>2002-12-04 11:00:25 +0000
commitbe115681678c9a4e34a0cf5caa94c6297b4389f9 (patch)
tree98483ac430a29780ca18c3733a6c9f013a1ee2e0 /linux
parent8e3e7bff18e09b407c8e05ab24fce672d7a7a30b (diff)
downloadmediapointer-dvb-s2-be115681678c9a4e34a0cf5caa94c6297b4389f9.tar.gz
mediapointer-dvb-s2-be115681678c9a4e34a0cf5caa94c6297b4389f9.tar.bz2
call reparent_to_init() after daemonize ()
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/media/dvb/av7110/av7110.c3
-rw-r--r--linux/drivers/media/dvb/dvb-core/dvb_frontend.c1
2 files changed, 3 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/av7110/av7110.c b/linux/drivers/media/dvb/av7110/av7110.c
index caadca7d0..a1c18bc7a 100644
--- a/linux/drivers/media/dvb/av7110/av7110.c
+++ b/linux/drivers/media/dvb/av7110/av7110.c
@@ -347,8 +347,9 @@ static int arm_thread(void *data)
u16 newloops;
lock_kernel();
-#if 0
+#if 1
daemonize();
+ reparent_to_init ();
#else
exit_mm(current);
current->session=current->pgrp=1;
diff --git a/linux/drivers/media/dvb/dvb-core/dvb_frontend.c b/linux/drivers/media/dvb/dvb-core/dvb_frontend.c
index 9da066fec..755c183dc 100644
--- a/linux/drivers/media/dvb/dvb-core/dvb_frontend.c
+++ b/linux/drivers/media/dvb/dvb-core/dvb_frontend.c
@@ -437,6 +437,7 @@ int dvb_frontend_thread (void *data)
lock_kernel ();
daemonize ();
+ reparent_to_init ();
sigfillset (&current->blocked);
strncpy (current->comm, "kdvb-fe", sizeof (current->comm));
fe->thread = current;