This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Found a bug in hello world



GNU Hello 1.3 gets caught in an infinite loop under Cygwin 1.1 when given
the -m (read mail) option.

The code is

    do
      {
        sprintf (mailname, "%s/%s", *d, user);
        mailfd = open (mailname, O_RDONLY);
      } while (mailfd == -1 && (errno == ENOENT || errno == ENOTDIR));

None of the possible mailname's will ever be present, and thus mailfd will
always be -1.  And I can't get gdb to admit that "errno" exists under Cygwin
(it tells me "no such symbol"), so I have no idea what's wrong there.  But 
the condition always succeeds.

Anyhow...


Phil


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]