Re: [OT] alarm() question

2001-12-01 Thread Eric Melville
> Uh, I'm not sure what to make of that mangling of my name. However, I > think the pointer to Steven's book you provided may be the thing he > needs. I certainly don't know what he needs based on his followup. I'm really sorry for messing up your name like that. I suppose your domain name was st

Re: [OT] alarm() question

2001-12-01 Thread Mike Meyer
Eric Melville <[EMAIL PROTECTED]> types: > > The system call is being interrupted, it just gets restarted right away by > > default. See Steven's "UNIX Network Programming" for a means of avoiding > > this behavior. > Of course, I'm completely wrong because we're not even talking about a > system

Re: [OT] alarm() question

2001-11-30 Thread Eric Melville
> The system call is being interrupted, it just gets restarted right away by > default. See Steven's "UNIX Network Programming" for a means of avoiding > this behavior. Of course, I'm completely wrong because we're not even talking about a system call here. Mike Mired already posted what you need

Re: [OT] alarm() question

2001-11-30 Thread Eric Melville
> Why does the alarm go off but not interrupt the system call? bzzt() is > executed, but the program doesn't print Done and exit for a minute plus. > > Pointers to FM to RT welcome. The system call is being interrupted, it just gets restarted right away by default. See Steven's "UNIX Network Pr

Re: [OT] alarm() question

2001-11-30 Thread Mike Meyer
David Miller <[EMAIL PROTECTED]> types: > Apologies for this being more C than freebsd, but I did say OT in > the subject... > > In the most basic use of an alarm, like this: > > #include > #include > #include > > sig_t > signal(int sig, sig_t func); > > static void bzzt() { > printf("

[OT] alarm() question

2001-11-30 Thread David Miller
Apologies for this being more C than freebsd, but I did say OT in the subject... In the most basic use of an alarm, like this: #include #include #include sig_t signal(int sig, sig_t func); static void bzzt() { printf("In routine bzzt now, timer expired after 3 seconds\n"); } main() {