lkml.org 
[lkml]   [1996]   [Nov]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: -ERESTARTSYS and /dev/ttyS1
Date

> Follow the output of strace. Note the -ERESTARTSYS error. According with
> /usr/include/linux/errno.h: /* Should never be seen by user programs */

Thats what I'd expect. Libc handles -ERESTARTSYS, not the kernel.

> alarm(2) = 0
> open("/dev/ttyS1", O_RDWR|O_NOCTTY) = -1 ERESTARTSYS (errno 512)

This blocks for carrier

> --- SIGALRM (Alarm clock) ---

[2 seconds are up]
> alarm(0) = 0

You turn the alarm off

> sigaction(SIGALRM, {SIG_DFL}, {SIG_DFL}) = 0

and reset the handler

> alarm(0) = 0

and turn it off again

> write(2, "ldial failed: Can\'t open this l"..., 36ldial failed: Can't open
> this
> line.
> ) = 36
> _exit(-1) = ?

That looks OK


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