incubator-nuttx/sched/group
Gregory Nutt 9400cf2cd1 sched/group: On task creation, do not clone uninitialized descriptors.
Sockets are created in two steps:

1. The socket is allocated, then
2. The socket is initialized.

In SMP mode, there is a possibility that a pthread executing one CPU may create a new task while a pthread on another CPU has allocated the socket but not yet initialized it.  This commit updates the socket clone test to assure that the socket is both allocated and initailized.

Without the change, it is possible that uninitialized sockets could be cloned, leading to errors later in the newly started task.
2020-04-28 21:27:05 +01:00
..
Make.defs sched/group/group_setuptaskfiles.c: Fix bad file inclusion. 2020-03-05 00:49:12 +01:00
group.h sched/: Correct some naming. The NuttX task groups have been using the acroynum 'gid' and also the type 'gid_t' for the the task group ID. That is incorrect. Than naming is reserved for use with group permissions. So these were all named to grpid and grpid_t so that it is clearer that these refer to NuttX task group IDs, and not to group permissions. 2019-08-02 10:01:30 -06:00
group_addrenv.c tools/nxstyle.c: Correct detection of missing blank line following a block comment. 2019-11-09 08:15:12 -06:00
group_childstatus.c tools/nxstyle.c: Add logic to detect if there is a blank line following the final right brace. sched/: Applied the modified nxstyle to all C file as a test. 2019-10-24 11:02:42 -06:00
group_continue.c sched/: Update signal default STOP action. If waitpid was called with the WUNTRACED then wake up waitpid. Also fix some compile problems.. How did this work before? 2018-09-02 13:51:52 -06:00
group_create.c Remove exra whitespace from files (#189) 2020-01-31 09:24:49 -06:00
group_exitinfo.c Refine the preprocessor conditional guard style (#190) 2020-01-31 19:07:39 +01:00
group_find.c Remove exra whitespace from files (#189) 2020-01-31 09:24:49 -06:00
group_foreachchild.c sched/group/group_foreachchild.c: group_foreachchild iterate by reverse order since the callback(e.g. group_killchildren) may remove the tcb from list 2018-11-08 07:03:30 -06:00
group_free.c Refine the preprocessor conditional guard style (#190) 2020-01-31 19:07:39 +01:00
group_getgid.c sched/group and syscall/: Implement 'real' setuid, getuid, setgid, and getgid interfaces. These will be inheritance by all child task groups. 2019-08-06 14:13:43 -06:00
group_getuid.c sched/group and syscall/: Implement 'real' setuid, getuid, setgid, and getgid interfaces. These will be inheritance by all child task groups. 2019-08-06 14:13:43 -06:00
group_join.c tools/nxstyle.c: Fix logic that detects if an operator is correctly delimited with spaces. sched/: Various changes because sched/ C files were used as Guinea Pigs to test nstyle.c. 2019-03-01 10:50:02 -06:00
group_killchildren.c tools/nxstyle.c: Fix logic that detects if an operator is correctly delimited with spaces. sched/: Various changes because sched/ C files were used as Guinea Pigs to test nstyle.c. 2019-03-01 10:50:02 -06:00
group_leave.c global change: fix tools/checkpatch.sh warnnings 2020-04-09 10:29:28 -06:00
group_malloc.c Refine the preprocessor conditional guard style (#190) 2020-01-31 19:07:39 +01:00
group_setgid.c Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00
group_setuid.c Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00
group_setupidlefiles.c Remove exra whitespace from files (#189) 2020-01-31 09:24:49 -06:00
group_setupstreams.c Remove exra whitespace from files (#189) 2020-01-31 09:24:49 -06:00
group_setuptaskfiles.c sched/group: On task creation, do not clone uninitialized descriptors. 2020-04-28 21:27:05 +01:00
group_signal.c Squashed commit of the following: 2019-04-29 14:52:05 -06:00
group_suspendchildren.c tools/nxstyle.c: Fix logic that detects if an operator is correctly delimited with spaces. sched/: Various changes because sched/ C files were used as Guinea Pigs to test nstyle.c. 2019-03-01 10:50:02 -06:00
group_waiter.c global change: repace sched_xfree() to kxmm_free() 2020-04-09 10:29:28 -06:00
group_zalloc.c Refine the preprocessor conditional guard style (#190) 2020-01-31 19:07:39 +01:00