PERFORCE change 107949 for review
Roman Divacky
rdivacky at FreeBSD.org
Sun Oct 15 06:52:01 PDT 2006
http://perforce.freebsd.org/chv.cgi?CH=107949
Change 107949 by rdivacky at 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) */
More information about the p4-projects
mailing list