Re: [dev] [PATCH 1/1] remove useless dup()
On Wed, Jul 08, 2015 at 12:00:35PM +0200, Roberto E. Vargas Caballero wrote:
>
> > We are ignoring return value of dup(), so just remove it.
>
>
> From dup(3):
>
> The dup() system call creates a copy of the file descriptor oldfd,
> using the lowest-numbered unused descriptor for the new descriptor.
>
>
Yes, but can't dup() fail? Shouldn't we at least check or that?
Ciao,
Markus
Received on Wed Jul 08 2015 - 21:30:47 CEST
This archive was generated by hypermail 2.3.0
: Wed Jul 08 2015 - 21:36:08 CEST