Date: Tue, 24 Feb 1998 11:55:13 -0500 (EST) From: "John S. Dyson" <toor@dyson.iquest.net> To: vegold01@starbase.spd.louisville.edu (V Edward Gold, Jr.) Cc: freebsd-current@FreeBSD.ORG Subject: Re: problems with XView and FreeBSD Message-ID: <199802241655.LAA00660@dyson.iquest.net> In-Reply-To: <34ECD591.41C67EA6@starbase.spd.louisville.edu> from "V Edward Gold, Jr." at "Feb 20, 98 01:00:01 am"
next in thread | previous in thread | raw e-mail | index | archive | help
V Edward Gold, Jr. said:
> I just recently started playing with an application that was written
> originally on SunOS 4.1.3 and I ported it to FreeBSD 2.2.1 and
> everything was fine. I upgraded to 3.0 and now I experience problems
> apparently caused by using the notify_do_dispatch() call and ANY
> subsequent file I/O. I went ahead and attached the sample program that
> demonstrates this oddity, in case anyone wants to help me locate its
> source/cure. I compile it as follows:
> gcc -o main main.c -I/usr/X11R6/include -g -L/usr/X11R6/lib -lxview
> \ -lX11 -lolgx
>
> while( 1 )
> {
> char cmd_buffer[1024];
> sprintf( msg, prompt );
> write( fileno( stdout ), msg, strlen( msg ) );
> fflush( stdout );
> while( read( fileno(stdin), sizeof(cmd_buffer), cmd_buffer ) != 0 );
The order of args is wrong ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^
> }
>
> free( cmd_word );
> }
--
John | Never try to teach a pig to sing,
dyson@freebsd.org | it just makes you look stupid,
jdyson@nc.com | and it irritates the pig.
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199802241655.LAA00660>
