[lkml]   [1998]   [Sep]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Interesting scheduling times
On Sun, 20 Sep 1998, David Holland wrote:

> > > Any program that counts on the behavior of signal() in this manner is
> > > broken. What part of that isn't clear?
> >
> > Nothing. It is clearly wrong.
> This is at variance with accepted practice. If you really need to
> choose whether you are going to get SA_ONESHOT or not, you use
> sigaction.

The problem is that people approach a particular system with
certain expectations based on past experience. It is not
unreasonable for glibc to have standardised on a single behaviour
since it is supposed to provide a consistent API on all systems.
One of the SYSV and BSD behaviours had to break (although I
personally would have done it the other way round).

The *real* problem is that, although the behaviour is documented
deep down in the glibc documentation, glibc comes without any
form of simple documentation that details the critical changes
on each system it builds for. The result is that a lot of people
are going to get confused, a lot of programs will have unexpected

(In fact the sqlexecd from Informix's Linux release seems to
have a related problem - it sets a SIGCHLD handler with signal()
and expects it to be sticky but it is linked against libc5. My
guess is that someone was working from documentation on a glibc
system but the final build was libc5 for maximum portability.)


| Mike Jagdis | Internet: |
| Roan Technology Ltd. | |
| 54A Peach Street, Wokingham | Telephone: +44 118 989 0403 |
| RG40 1XG, ENGLAND | Fax: +44 118 989 1195 |

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:44    [W:0.037 / U:13.396 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site