Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset ffff746 in mainline


Ignore:
Timestamp:
2011-07-29T17:12:52Z (10 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master
Children:
11544f4
Parents:
7ae249d
Message:

Bugfix in signal.c

File:
1 edited

Legend:

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

    r7ae249d rffff746  
    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.