Changeset 1cc4a09 in mainline for uspace/lib/posix/signal.c


Ignore:
Timestamp:
2011-08-14T00:19:31Z (13 years ago)
Author:
Petr Koupy <petr.koupy@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b705ecc
Parents:
6d100fd (diff), e0e922d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge libposix changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/signal.c

    r6d100fd r1cc4a09  
    252252                    " or fully unsupported signal. This handler may only be"
    253253                    " invoked by the raise() function, which may not be what"
    254                     " the application developer intended.\nSignal name");
     254                    " the application developer intended");
    255255        }
    256256
     
    360360        }
    361361
     362        if (signo > _TOP_SIGNAL) {
     363                errno = EINVAL;
     364                return -1;
     365        }
     366
    362367        if (pid == (posix_pid_t) task_get_id()) {
    363368                return posix_raise(signo);
    364         }
    365 
    366         if (pid > _TOP_SIGNAL) {
    367                 errno = EINVAL;
    368                 return -1;
    369369        }
    370370
Note: See TracChangeset for help on using the changeset viewer.