svn commit: r348243 - in stable/12/sys: compat/linuxkpi/common/include/linux compat/linuxkpi/common/src sys
Johannes Lundberg
johalun at FreeBSD.org
Fri May 24 17:04:29 UTC 2019
Author: johalun
Date: Fri May 24 17:04:27 2019
New Revision: 348243
URL: https://svnweb.freebsd.org/changeset/base/348243
Log:
MFC r347843:
LinuxKPI: Add group_leader member to struct task_struct.
Assign self as group leader at creation to act as the only member of a
new process group.
Bump FreeBSD version.
This patch is part of D19565
Reviewed by: hps
Approved by: imp (mentor), hps
Modified:
stable/12/sys/compat/linuxkpi/common/include/linux/sched.h
stable/12/sys/compat/linuxkpi/common/src/linux_current.c
stable/12/sys/sys/param.h
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/compat/linuxkpi/common/include/linux/sched.h
==============================================================================
--- stable/12/sys/compat/linuxkpi/common/include/linux/sched.h Fri May 24 17:01:05 2019 (r348242)
+++ stable/12/sys/compat/linuxkpi/common/include/linux/sched.h Fri May 24 17:04:27 2019 (r348243)
@@ -80,6 +80,7 @@ struct task_struct {
int rcu_recurse;
int bsd_interrupt_value;
struct work_struct *work; /* current work struct, if set */
+ struct task_struct *group_leader;
};
#define current ({ \
Modified: stable/12/sys/compat/linuxkpi/common/src/linux_current.c
==============================================================================
--- stable/12/sys/compat/linuxkpi/common/src/linux_current.c Fri May 24 17:01:05 2019 (r348242)
+++ stable/12/sys/compat/linuxkpi/common/src/linux_current.c Fri May 24 17:04:27 2019 (r348243)
@@ -67,6 +67,7 @@ linux_alloc_current(struct thread *td, int flags)
ts->task_thread = td;
ts->comm = td->td_name;
ts->pid = td->td_tid;
+ ts->group_leader = ts;
atomic_set(&ts->usage, 1);
atomic_set(&ts->state, TASK_RUNNING);
init_completion(&ts->parked);
Modified: stable/12/sys/sys/param.h
==============================================================================
--- stable/12/sys/sys/param.h Fri May 24 17:01:05 2019 (r348242)
+++ stable/12/sys/sys/param.h Fri May 24 17:04:27 2019 (r348243)
@@ -60,7 +60,7 @@
* in the range 5 to 9.
*/
#undef __FreeBSD_version
-#define __FreeBSD_version 1200510 /* Master, propagated to newvers */
+#define __FreeBSD_version 1200511 /* Master, propagated to newvers */
/*
* __FreeBSD_kernel__ indicates that this system uses the kernel of FreeBSD,
More information about the svn-src-all
mailing list