lkml.org 
[lkml]   [2008]   [May]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH 1/3] signals: sigqueue_free: don't free sigqueue if it is queued
    Date
    > So. Let's suppose that (say) SIGHUP is pending, and the posix timer
    > sends SIGHUP too. In that case the new SIGHUP is added, and if the
    > previous one was infoless the new one "hides" it: collect_signal()
    > won't see 2 distinct signals, it will find only 1 signal and clear
    > the bit in sigpending->signal.

    That is correct behavior. Signals < SIGRTMIN do not queue. (POSIX says
    it's implementation-defined whether they do, and in Linux they don't.)
    When a signal does not queue, it's unspecified whether the the one that
    is ever actually seen is the first one or the last one (or any in between),
    so the siginfo_t details showing the second one in your example is fine.


    Thanks,
    Roland


    \
     
     \ /
      Last update: 2008-05-23 03:45    [W:0.027 / U:31.188 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site