Free Downloads, Community Forum,
FAQs and Developer Resources


Make /Tools Your Home | Link to us

Today's posts | Posts since last visit | Most Active Topics

All Forums Register Login Search Subscriptions My Profile Inbox
Tool Warehouse FAQs Resources Help Member List Address Book Logout

"Resource temporarily unavailable"

 
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [SFU / Interix / SUA Technology] >> Interix Advanced Forum >> "Resource temporarily unavailable" Page: [1]
Login
Message << Older Topic   Newer Topic >>
"Resource temporarily unavailable" - Jul. 10, '06, 11:53:23 PM   
gregmb

 

Posts: 27
Status: offline
Hope this hasn't already been discussed but I didn't find it in a search.

I have a async socket.

A SIGIO occurs then the accept on the server socket occurs giving me a socket descriptor

With this 'sd' I create a mask and call select() (ok maybe this is overkill)
the select returns, indicating that the sd is ready to read.
however when I 'read(sd,.....)' the return is -1 with the errno
reporting "Resource temporarily unavailable".

Does anyone have a clue what is going on here?

This code works fine on Solaris and Redhat Linux 4.0

Thanks in Advance
Greg
Post #: 1
RE: "Resource temporarily unavailable" - Jul. 11, '06, 12:41:40 AM   
Rodney

 

Posts: 3714
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
You didn't say which version of you're running (uname -a).
If you are running 3.5 then in general updating the subsystem to the
lastest and greatest hot fix is the best idea. One of the hotfixes
addressed this problem. The hot fixes are cumulative so by getting the
latest you get all of the fixes.
You can get it officially from MS support (aka PSS) and they won't charge you.
But you have to call or e-mail them (telephone is faster). No, MS doesn't
have the hotfixes available as a download. There is a site that offers them for
unoffical download (duh.org).

(in reply to gregmb)
Post #: 2
RE: "Resource temporarily unavailable" - Jul. 11, '06, 11:47:32 AM   
gregmb

 

Posts: 27
Status: offline
Rodney,

thanks for the info.

uname -a returned:

"Interix ...... 3.5 SP-8.0.1969.1 x86 Intel_x86_Family15_Mode14_Skipping3"


I called MS support PSS (800-936-4900 for US customers)

However just requesting the latest HotFix for SFU 3.5 was insufficient.
(What was I thinking, haha)

They required KB#s. They were kind enough to point me to their
support.microsoft.com web site and said search the Knowledge Base.

I went to www.duh.org instead, which wouldn't you know our company blocks,
but I have my ways.

I obtained their 11 recommended KB#s and recalled MS. They had to make separate
request # for each one, I'll eventually obtain Emails so I can download them all.
You would think they could make this process simpler.

I'll let you know how it goes.

Thanks
Greg

(in reply to Rodney)
Post #: 3
RE: "Resource temporarily unavailable" - Jul. 11, '06, 12:59:22 PM   
Rodney

 

Posts: 3714
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
awww, jeepers batman! I figured that they'd just, like, *know*. <head shake>
^--(written instead of something else )

You only need the one because they are cumulative.
The specific KB for your problem is 889087. But as I said just get
the lastest and greatest which is 914680.
Or, rather, that's the only one you need to install.

(in reply to gregmb)
Post #: 4
RE: "Resource temporarily unavailable" - Jul. 11, '06, 9:08:13 PM   
gregmb

 

Posts: 27
Status: offline
I installed the 914680 hotfix, however I still have the same problem.

(in reply to Rodney)
Post #: 5
RE: "Resource temporarily unavailable" - Jul. 12, '06, 1:07:03 PM   
gregmb

 

Posts: 27
Status: offline
I've narrowed down my problem, I fstat() the socket descriptor to be sure the
corrected number of bytes are present, because I do not want to block on the 'sd'.
It appear the fstat() returns zero, however if I actually read the 'sd' I get the
data I expected.

e.g.

struct stat sinfo;

fstat(sd, &sinfo);

sinfo.st_size is zero !
where there is actually 4 bytes (or more) present on the socket

Does fstat not work? or just on sockets?

Greg

(in reply to gregmb)
Post #: 6
RE: "Resource temporarily unavailable" - Jul. 12, '06, 1:20:01 PM   
gregmb

 

Posts: 27
Status: offline
OK, never mind, I have it working.

The fstat was used to try to get around that ioctl() didn't seem to work.

But I went back to the ioctl() and now it does work, so maybe those HotFixes
corrected that problem.

Anyway, thanks for you help

Greg

(in reply to gregmb)
Post #: 7
Page:   [1]
All Forums >> [SFU / Interix / SUA Technology] >> Interix Advanced Forum >> "Resource temporarily unavailable" Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Search All Forums -

Advanced search


SPONSORS



Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI

0.063