Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Fri, 5 Sep 2014 20:52:55 +0200
From: Felix Janda <>
Subject: Re: Add login_tty

Rich Felker wrote:
> On Fri, Sep 05, 2014 at 07:23:52PM +0200, Felix Janda wrote:
> > The other possibility for dup2 to fail seems to be EINTR.
> > (We already know that fd can't be invalid.)
> > Should this also be checked?
> Why would EINTR happen? dup2 does not involve any sleep much less
> interruptible sleep/blocking.

You're right. Only EBUSY, EBADF or EINVAL can happen.


Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.