[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-kernel
Subject:    Re: [PATCH] 2.3.18: siginfo data available for all signals
From:       Jamie Lokier <lkd () tantalophile ! demon ! co ! uk>
Date:       1999-09-15 16:12:27
[Download RAW message or body]

Jakub Jelinek wrote:
> make the arch signal handlers understand a little bit the siginfo_t
> structure and for the well known si_codes they just put_user the fields
> related to that si_code as opposed to copy_to_user the whole structure
> and only operate with the full 128byte siginfo_t if it came from
> sigqueueinfo.

A simple si_len field for the kernel would do this in an uncomplicated
way.  Wow, 128 bytes is large for something that usually has only 3 or
so words in it.

> It makes a lot of sense to use siginfo_t for passing stuff like segfault
> address, segfault reason and the like and other Unices do it that way.

Indeed, SIGCHLD (which child) springs to mind too.

-- Jamie

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic