mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 10:58:49 +08:00
Eliminate `sigset' shadow warning
Signed-off-by: Anton D. Kachalov <mouse@yandex-team.ru>
This commit is contained in:
parent
274b7986be
commit
2ca1dd6efe
1 changed files with 4 additions and 4 deletions
|
@ -268,16 +268,16 @@ int schedule_unload(pid_t pid, FAR struct binary_s *bin)
|
||||||
{
|
{
|
||||||
struct sigaction act;
|
struct sigaction act;
|
||||||
struct sigaction oact;
|
struct sigaction oact;
|
||||||
sigset_t sigset;
|
sigset_t set;
|
||||||
irqstate_t flags;
|
irqstate_t flags;
|
||||||
int errorcode;
|
int errorcode;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
/* Make sure that SIGCHLD is unmasked */
|
/* Make sure that SIGCHLD is unmasked */
|
||||||
|
|
||||||
(void)sigemptyset(&sigset);
|
(void)sigemptyset(&set);
|
||||||
(void)sigaddset(&sigset, SIGCHLD);
|
(void)sigaddset(&set, SIGCHLD);
|
||||||
ret = sigprocmask(SIG_UNBLOCK, &sigset, NULL);
|
ret = sigprocmask(SIG_UNBLOCK, &set, NULL);
|
||||||
if (ret != OK)
|
if (ret != OK)
|
||||||
{
|
{
|
||||||
/* The errno value will get trashed by the following debug output */
|
/* The errno value will get trashed by the following debug output */
|
||||||
|
|
Loading…
Reference in a new issue