[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#45104: setsid() breakage



   Date: Wed, 22 Sep 1999 22:22:46 +0200 (CEST)
   From: Mark Kettenis <kettenis@soliton.wins.uva.nl>

   There something else going on.  I'll try to debug the problem and see
   if I can come up with a solution.

I think I found the problem.  `getty' sets the controlling terminal,
but `login' doesn't pass it to its child.  I think the following patch
is the solution.

Mark


1999-09-23  Mark Kettenis  <kettenis@gnu.org>

	* login.c (main): Pass controlling terminal ID port to the child.


--- /home/kettenis/CVS/hurd/utils/login.c	Wed Jul 14 20:57:44 1999
+++ hurd/utils/login.c	Wed Sep 22 23:54:23 1999
@@ -696,6 +696,7 @@
   for (i = 0; i < INIT_PORT_MAX; i++)
     ports[i] = MACH_PORT_NULL;
   ports[INIT_PORT_PROC] = getproc ();
+  ports[INIT_PORT_CTTYID] = getcttyid ();
   ports[INIT_PORT_CRDIR] = getcrdir ();	/* May be replaced below. */
   ports[INIT_PORT_CWDIR] = getcwdir ();	/*  "  */
 


Reply to: