[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] [Mint-cvs] [FreeMiNT CVS] mintlib/unix



Hi Helmut,

Did you commit this to the MiNTlib branch ?

Just checking if it needs the version of MiNT checking differently or
does this work with older kernels ?

Alan.

On 03/01/15 13:01, cvs@sparemint.org wrote:
> Update of /mint/mintlib/unix
> In directory mail.sparemint.org:/tmp/cvs-serv3336
>
> Modified Files:
> 	open.c 
> Log Message:
> no error if no reader/writer for fifo and O_DENYNONE set
>
> Index: mintlib/unix/open.c
> diff -u mintlib/unix/open.c:1.11 mintlib/unix/open.c:1.12
> --- mintlib/unix/open.c:1.11	Fri Aug 17 19:19:39 2012
> +++ mintlib/unix/open.c	Sat Jan  3 08:01:35 2015
> @@ -167,9 +167,8 @@
>  		if (rv == -ENOENT)
>  		/* race: file can disappear between stat and open... */
>  			goto noent;
> -		if (rv >= 0 && __mint >= 9 && (/* __mint <= 0x109 ?
> -			S_ISFIFO(sb.st_mode) : */
> -			(major((dev_t) sb.st_rdev) == major(PIPE_RDEV)))
> +		if (rv >= 0 && __mint >= 9 && !(iomode & O_DENYNONE)
> +			&& (major((dev_t) sb.st_rdev) == major(PIPE_RDEV))
>  		    && ((iomode & O_WRONLY) ? Foutstat(rv) : Finstat(rv)) < 0) {
>  		/* /pipe/file still open but noone at other end */
>  			(void)Fclose(rv);
>
> _______________________________________________
> cz-bobek-lists-mint-cvs mailing list
> mint-cvs@lists.bobek.cz
> https://lists.bobek.cz/mailman/listinfo/cz-bobek-lists-mint-cvs