Date: Wed, 24 Nov 1999 02:29:32 +0300 From: Seva "Semenov" <seva@mtelecom.ru> To: Alfred Perlstein <bright@wintelcom.net> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: fcntl(0,F_SETFL,O_ASYNC) & signal(SIGIO,rkbd); don't work in3.X !!!! Message-ID: <383B235C.7F4613E1@mtelecom.ru> References: <Pine.BSF.4.21.9911231541040.4557-100000@fw.wintelcom.net>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
Great!!!!
Thanx...
> i'm not sure why the change happened, but here's a fix:
>
> --- sigio.old.c Tue Nov 23 19:18:01 1999
> +++ sigio.c Tue Nov 23 19:19:21 1999
> @@ -36,7 +36,14 @@
> int
> main(int argc,char **argv)
> {
> + int arg;
> +
> + arg = getpid();
> +
> +
> if(fcntl(0,F_SETFL,O_ASYNC)==-1)
> + err(errno,NULL);
> + if(fcntl(0,F_SETOWN,arg)==-1)
> err(errno,NULL);
> signal(SIGIO,rkbd);
> for(;;){
>
> unless this is strictly a test program you should be using
> the constants "STDIN_FILENO" afaik.
>
> -Alfred
[-- Attachment #2 --]
0 *H
010 + 0 *H
00-0
*H
010 URU10
URussia10
UMoscow10U
Mobile TeleCom10UEngeneering Department10UMobile TeleCom CA1"0 *H
seva@ca.mtelecom.ru0
991023083747Z
001022083747Z010 URU10
URussia10
UMoscow10U
Mobile TeleCom10UEngeneering Department10USeva Semenov10 *H
seva@mtelecom.ru0\0
*H
K 0HA 4vsx;08862s5vj. 5#@2\J D0@0 U0 0; `HB
.,Mobile TeleCom OpenSSL Generated Certificate0UVHm}Qqܔx 0U#0ˀ2wuJH]010 URU10
URussia10
UMoscow10U
Mobile TeleCom10UEngeneering Department10UMobile TeleCom CA1"0 *H
seva@ca.mtelecom.ru 0
*H
n^7[~X/F[(ɮjr}*_| HZQtEW w/}r;\x$>W,R#ߗ̝I"0}L1&b:"=f9x,^100010 URU10
URussia10
UMoscow10U
Mobile TeleCom10UEngeneering Department10UMobile TeleCom CA1"0 *H
seva@ca.mtelecom.ru0 + }0 *H
1 *H
0 *H
1
991123232932Z0 *H
100
*H
(0# *H
1ge Zd4Nfs0
*H
@*yRQG0 E3bGJН<sQxQjΪyYl6u>ػ2+!-
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?383B235C.7F4613E1>
