tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: updates?



In article <CA+SXE9uJ7LG40XyT0g1v-CzNxWkrnk79T0xcd4D2-QDLrMarhw%mail.gmail.com@localhost>,
Charles Cui  <charles.cui1984%gmail.com@localhost> wrote:

>I did not quite understand it.
>https://github.com/ycui1984/posixtestsuite/blob/master/patches/REALTIME_SIGNAL/0004-improve-error-checking.patch
>This patch removes all ret = -1 logics, and set error at kpsignal2,
>did you want to set error code inside sigput?

Yes sigput should return EAGAIN, the ret variable should be called error,
and all errors from sigput() should goto discard (unless there is some
cleanup that needs to be done).

>The handling order of realtime signal and standard signals are not defined
>by POSIX.
>Some OSes handle realtime signal in FIFO order, but some select the
>realtime signal with lowest number first.
>It's still good to know the real results, though.

Yes, and it is good to verify that the ordering for realtime signals is
correct too.

christos



Home | Main Index | Thread Index | Old Index