Fix incorrect comparison of function pointers

The sort routine was using the address of the **function pointer**
`signal(int signal)` rather than the union payload of the same name.

Perhaps one of the two should be renamed.
This commit is contained in:
Mahmoud Al-Qudsi 2021-06-28 18:06:04 -05:00
parent 210dda2c4c
commit ba44c4242f

View file

@ -428,7 +428,7 @@ void event_print(io_streams_t &streams, const wcstring &type_filter) {
}
switch (d1.type) {
case event_type_t::signal:
return d1.signal < d2.signal;
return d1.param1.signal < d2.param1.signal;
case event_type_t::process_exit:
return d1.param1.pid < d2.param1.pid;
case event_type_t::job_exit: