Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Oct 2006 13:51:57 GMT
From:      Roman Divacky <rdivacky@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 107949 for review
Message-ID:  <200610151351.k9FDpvHY070996@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=107949

Change 107949 by rdivacky@rdivacky_witten on 2006/10/15 13:51:42

	Backout 107882 and add comment why is RFLINUXTHPN needed.

Affected files ...

.. //depot/projects/linuxolator/src/sys/kern/kern_fork.c#4 edit
.. //depot/projects/linuxolator/src/sys/sys/unistd.h#3 edit

Differences ...

==== //depot/projects/linuxolator/src/sys/kern/kern_fork.c#4 (text+ko) ====

@@ -527,7 +527,13 @@
 		sigacts_copy(newsigacts, p1->p_sigacts);
 		p2->p_sigacts = newsigacts;
 	}
-	p2->p_sigparent = SIGCHLD;
+	/* this flag is used by linuxthreads and is passed
+	 * in via rfork()
+	 */
+	if (flags & RFLINUXTHPN)
+	   	p2->p_sigparent = SIGUSR1;
+	else
+   	   	p2->p_sigparent = SIGCHLD;
 
 	p2->p_textvp = p1->p_textvp;
 	p2->p_fd = fd;

==== //depot/projects/linuxolator/src/sys/sys/unistd.h#3 (text+ko) ====

@@ -169,7 +169,7 @@
 #define	RFCFDG		(1<<12)	/* close all fds, zero fd table */
 #define	RFTHREAD	(1<<13)	/* enable kernel thread support */
 #define	RFSIGSHARE	(1<<14)	/* share signal handlers */
-#define	RFUNUSED	(1<<16)	/* UNUSED */
+#define	RFLINUXTHPN	(1<<16) /* do linux clone exit parent notification */
 #define	RFSTOPPED	(1<<17)	/* leave child in a stopped state */
 #define	RFHIGHPID	(1<<18)	/* use a pid higher then 10 (idleproc) */
 #define	RFPPWAIT	(1<<31)	/* parent sleeps until child exits (vfork) */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200610151351.k9FDpvHY070996>