On 06/06/07, Neo Jia <neojia@xxxxxxxxx> wrote:
hi, I read the post http://lkml.org/lkml/2002/12/18/218 about how to deal with the restarting system call. But still cannot get it. Maybe, the basic question should be what is a "restarting system call".
Some system calls can be interrupted by signals and return EINTR before completing their work. You can use sigaction() with the SA_RESTART flag to make it so that after the signal handler is called the system call is automatically restarted.
Can anyone here give me any hints?
see "man 2 sigaction", and this page may also be of use to you: http://www.win.tue.nl/~aeb/linux/lk/lk-4.html - see the section on "Interrupted system calls". -- Jesper Juhl <jesper.juhl@xxxxxxxxx> Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html Plain text mails only, please http://www.expita.com/nomime.html -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ