Select() function is not working properly in solaris 10.

Hi ,
We are facing an issue with select() in Solaris 10. we had written a sample program to this issue.
Program name :- sel.cpp
int main()
struct timeval sleeptime;
sleeptime.tv_sec = 60;
printf("1\n");
select(0,NULL,NULL,NULL,&sleeptime);
printf("2");
return 0;
When i run this program in Solaris 9, its printing 1 and after one minute its printing 2.
When i run this program on Solaris 10, its printing 1 and 2 without waiting for 60 seconds.
When i tried to print tv_usec, its printing as 0 in solaris 9 and some garbage values in solaris 10.
I think because of that the above select function is not working properly in solaris 10.
Why the tv_usec is not taking 0 as default values in Solaris 10?
We are using our legacy code for past 20 years. So, before going to do any changes we are trying to find why this happenig like this.
Thanks a lot.
Regards,
Srikanth.

haisrig wrote:
Hi ,
We are facing an issue with select() in Solaris 10. we had written a sample program to this issue.
Program name :- sel.cpp
int main()
struct timeval sleeptime;
sleeptime.tv_sec = 60;
printf("1\n");
select(0,NULL,NULL,NULL,&sleeptime);
printf("2");
return 0;
When i run this program in Solaris 9, its printing 1 and after one minute its printing 2.
When i run this program on Solaris 10, its printing 1 and 2 without waiting for 60 seconds.
When i tried to print tv_usec, its printing as 0 in solaris 9 and some garbage values in solaris 10.
I think because of that the above select function is not working properly in solaris 10.
Why the tv_usec is not taking 0 as default values in Solaris 10?
We are using our legacy code for past 20 years. So, before going to do any changes we are trying to find why this happenig like this.Hi
It sounds to me that you've been lucky for 20 years then.
Local POD variables on the stack that aren't explicitly initialized can contain any value. Here's what I see in your app with dbx
(dbx) run
Running: sel
stopped in main at line 9 in file "sel.cpp"
    9      sleeptime.tv_sec = 60;
(dbx) print sleeptime
sleeptime = {
    tv_sec  = -4198732
    tv_usec = 0
}That's on a Solaris 10 SPARC machine. If I try it on a Solaris 10 x86 box then I get
(dbx) print sleeptime
sleeptime = {
tv_sec = -830490588
tv_usec = 134510556
and I see the behaviour that you describe.
Paul

Similar Messages

  • Copy Function is Not Working properly In Order Management

    Hi,
    Description-
    When an order with remnant model is copied, it copied only the topple model line and they include items attached to the top model line. It doesn’t copy the
    option class lines and the option item lines (unshipped and shipped).
    Example-
    Enter an order with for pd-pto-model. See order#21231.The ordered quantities and structure of the model is shown below:
    pd-pto-model 5 qty
    pd-std-item1 (included item) 5 qty
    pd-pto-oc (option class) 5 qty
    pd-std-item1 (included item with rfr checked) 5 qty
    pd-std-item2 (option item with rfr checked) 5 qty
    pd-std-item3 (option item) 5 qty
    Booked the order and pick relased the order. While shipconfirming only shipped 5 qty of pd-std-item3 and staged the rest. On querying the sales order, the line status is seen correctly as follows:
    pd-pto-model Closed
    pd-std-item1 (included item) Picked
    pd-pto-oc (option class) Closed
    pd-std-item1 (included item with rfr checked) Picked
    pd-std-item2 (option item with rfr checked) Picked
    pd-std-item3 (option item) Partially Interfaced to receivables
    Copied this order from the order header. The new order# is 21232.On querying the order, I see only 2 lines as follows:pd-pto-model.
    Anyone can help me on this issue.
    Thanks,
    Chinna

    haisrig wrote:
    Hi ,
    We are facing an issue with select() in Solaris 10. we had written a sample program to this issue.
    Program name :- sel.cpp
    int main()
    struct timeval sleeptime;
    sleeptime.tv_sec = 60;
    printf("1\n");
    select(0,NULL,NULL,NULL,&sleeptime);
    printf("2");
    return 0;
    When i run this program in Solaris 9, its printing 1 and after one minute its printing 2.
    When i run this program on Solaris 10, its printing 1 and 2 without waiting for 60 seconds.
    When i tried to print tv_usec, its printing as 0 in solaris 9 and some garbage values in solaris 10.
    I think because of that the above select function is not working properly in solaris 10.
    Why the tv_usec is not taking 0 as default values in Solaris 10?
    We are using our legacy code for past 20 years. So, before going to do any changes we are trying to find why this happenig like this.Hi
    It sounds to me that you've been lucky for 20 years then.
    Local POD variables on the stack that aren't explicitly initialized can contain any value. Here's what I see in your app with dbx
    (dbx) run
    Running: sel
    stopped in main at line 9 in file "sel.cpp"
        9      sleeptime.tv_sec = 60;
    (dbx) print sleeptime
    sleeptime = {
        tv_sec  = -4198732
        tv_usec = 0
    }That's on a Solaris 10 SPARC machine. If I try it on a Solaris 10 x86 box then I get
    (dbx) print sleeptime
    sleeptime = {
    tv_sec = -830490588
    tv_usec = 134510556
    and I see the behaviour that you describe.
    Paul

  • Dynamic resizing in JDialog using setSize not working properly on solaris

    can anyone help..
    Dynamic resizing in JDialog using setSize is not working properly on solaris, its work fine on windows.
    i have set Jdialog size to setSize(768,364),
    when i dynamically resizing it to setSize(768,575); it doesn't get change but when i move dialog using mouse it gets refreshed.
    this problem is only happening on solaris not on windows.

    Hi,
    It's only an approach but try a call of validate() or repaint() after re-setting the size of your dialog.
    Cheers, Mathias

  • G510 installed Windows 8.1 Function keys not working properly

    Hi 
    I am Bharath
    last week i have puchased lenovo g510 laptop and installed windows 8.1 and later on automatically function keys and all the keys were not working properly. if i press key to increase brightness and some other operation is performing by its own. What's wrong with this LENOVO brand is this the way you take lots of money from people. I need an immediate solution from basic support to my home. If at all it is not resolved i will file a case on consumer court that LENOVO was chaeten me and what ever it may be i will go for end.
    Give me a clear answer with out any stupidity
    Moderator Note; subject edited; post moved here to start new thread

    hi bharath666,
    Welcome to Lenovo Community Forums!
    Were you able to install all the drivers and Software After the New installation of Win 8.1?
       Get the drivers here
     http://mobilesupport.lenovo.com/us/en/products/laptops-and-netbooks/lenovo-g-series-laptops/lenovo-...
    Start with the Chipset installation first then whatever comes next.
    Make sure you select the proper version for your Windows type and version.
    Regards
    Solid Cruver
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • Windows 7 Brightness and Function key not Working Properly

    i have HP 15-af024AU APU Quad Core A8-7410 - (4 GB DDR3,1 TB HDD) Noteboook and it  came with windows 8.1 preinstalled than i installed windows 7 ultimate.
    i have problem in Display Brightness i am not able to change Brightness by function key or by manually from windows settings.
    2. my Function key are not working properly . all key are fliped whiout holding function key it work as function key. 3. bluetooth is not working when i search for new device not able to find any available discouable bluetooth device. 4. wireless button software is not wokring in windows 7 i already updated my bios that available in drivers support and install alll drivers too properly so please give proper drivers for windows 7 for this product that works perfect.

    Sorry that driver didn't work. You can try this graphics driver and if that doesn't work, unfortunately, I won't be able to help you with that issue. This package provides the AMD High-Definition (HD) Graphics Driver and Catalyst Control Center for supported notebook models that are running a supported operating system. For notebooks with switchable graphics modes, this package includes drivers for both graphics processing units (GPUs). Switchable graphics enable users to switch between a power-saving graphics mode (normally used under battery power) and a high-performance graphics mode. If high-definition multimedia interface (HDMI) video output is supported, this package also installs the HDMI Audio Driver. File name: sp71253.exe As far as the Fn keys being 'flipped,' I have no idea what you mean by that, or what to do about it. Did you install the software that controls the funtion keys? This package contains the HP System Event Utility, which enables special function keys on supported notebook models to be programmed. For example, HP System Event Utility enables users to press the Fn+ESC keys to view system information. This software works with the supported operating systems. File name: sp71156.exe

  • Display has white and grey lines and blocks crisscrossing it and touch functions are not working properly on half the screen.

    I dropped my iPhone 5S and it landed flat on it's face (it was in a protective case).  Since then my touch screen display is not working properly. I have white and grey lines and/or blocks crisscrossing the screen both horizontally and vertically.  Screen responds to touch in odd random ways, but rarely does what I am trying to do.  Can't call or receive calls because can't dial or answer phone via swipe. Can't text or read incoming texts. All functions seem to be working except that I can't access them because the touch screen is acting up. If I move the phone around it randomly accesses different apps or functions, but I have no control over them once the appear on the screen.  Touching screen just causes phone to randomly choose something else to open.  What have I damaged?

    Shanegang77 wrote:
    What have I damaged?
    We cannot possibly tell. Obviously some hardware inside. Take it in to an Apple Store. They will offer you the opportunity to swap the phone for $269 in the US. Prices vary by country.

  • Satellite L850 - Special function key not working properly

    Hi Everyone,
    I had Satellite L850 (pskg8a-07f001) running windows 8 64 bite for just 2 months.
    Just within this week, the special function key not working, each time I start the pc, i have to go into toshiba desktop assist then function key then click ok, it will working.
    But the touch pad has been set as enabled, also under keyboard setting has been set as special function mode. But don't know why each time start the pc have to go into function key box then click ok.
    When I bought it everything is ok, i can use the special function key to turn up and down the volume and disable wireless...etc
    Please advise. Thks a lot!

    Take a look here:
    Function key changes in Satellite and Qosmio 800 series
    http://aps2.toshiba-tro.de/kb0/TSB2903E00000R01.htm
    You can use the traditional FN + F key mode or just an F key mode.
    This can be enabled and disabled in BIOS or the HWSetup
    In BIOS go to Advanced -> System configuration -> Function key mode
    This mode can be changed
    Also be sure that Function Button option is enabled too

  • RH9 Webhelp Search function is not working properly

    Hi,
    My organization is using RH9 for a Webhelp project.  My company and our client are restricted to using IE9 for the online help I have created for this project, and our OS environment is Windows 7.  When I generate using the Webhelp layout, with the TOC, Index and Search options chosen, my resulting browser window shows two frames.  Left for the Contents/Index/Search and right for the content.  In the left panel, there are three links at the top for Contents, Index and Search.  When I click on the Search link, the only thing I see is the alphabet A-Z (which are links to filter items beginning with these letters (much like the index link) and a list of what I would say is garbage.  For example, if I click on H, I see items like "half 1 2 3" or "held" or "honor # 1 2 3 4 5 6 7 8", etc.  If I run my cursor down this list, I notice that maybe the word honor is a link.  If clicked it brings up one of my topic pages.  I can also click on the random numbers that appear, like clicking on 3 it brings up another topic page.  The search function does not allow me to type in a search criteria, since there is no search field as well.
    Do you have any suggestions for this issue?  Is this a bug, or do I need to change settings somewhere within RH9?  The same thing is happening when using this help project that is running on our clients server.  Is there any suggestion you can give to try and make this work properly?

    Rick,  Thanks for stepping in.    I assumed that was the reason why I was not receiving the search field, and that is fine for now.  We have discussed with our client the possibility of having two different help projects one for each, but that decision was kind of put on the back burner.
    However, the other issue I am having is still there and I don't quite understand why.  Since I only have clickable A-Zs for the search, and it lists links much like the Index section, I'm still seeing lists of just numbers and characters (i.e., "# 1 2 3 4 5", or "%" or "& 1 2 3 4 5" sometimes all the way up to 18 or so).  And each of these characters or numbers are clickable links as well to either page that doesn't contain that number or to nothing.
    Doing a bit more research, I have noticed that a lot of these links are being picked up by the PDF file we have as part of the project.  Our help project has a link to the documented version of the help in the form of a User Guide.pdf file.  So the search is listing items from that guide like the heading numbers 1.0, 1.0.1, etc.  Also each of these are clickable links that go nowhere.  But then there is still the numbers 1, 2, etc that go to pages that don't have this anywhere on the page.
    Do you have any insight as to why these types of things are being listed under Search at all?  They make that selection look very messy and unorganized.  Not professional at all.  I have checked and tested the properties settings and can't seem to find what is causing this to happen.  Any idea would be most appreciated!!

  • In Logic account the operator function is not working properly

    Hi all ,
    When am defiining the logic accounts using a operator as Function ,it is not working at all showing a red border in the cell and not able to update the grid .
    InValue/Exp-> am using a function -> CurVal > 0 then Result=CurVal else Result ="skip" endif
    Please suggest me if there is some workaround available for this ?

    Thanks for the Link!!
    We are using the FDM version 11.1.1.3 and Target as HFM .
    Now i am creating a logic account say Item - L1100 ,Type-IN, Criteria value-1100,Operator-Function(Not working),
    Value/Exp->If CURVAL > 0 Then      RESULT = CURVAL Else Result=”Skip” End If.
    As soon as i select the operator(Function) ,it shows a red border on the operator cell and couldn't able to update the grid .
    Have searched the OTN discussion forumns and find no answer for this !! Could you please sugesst me if any workaround available for this piece ?
    Thanks
    Kenny

  • Function Keys not working properly after recent update today.

    Sat C855 - today I downloaded the 2 recent updates & now my function keys aren't working properly. Anyone one else have that problem? What can I do?

    Hi! Night shift here! You can find the full model number on the bottom of your laptop. Jerry might not log on again tonight!
    Dokie!
    I Love my Satellite L775D-S7222 Laptop. Some days you're the windshield, Some days you're the bug. The Computer world is crazy. If you have answers to computer problems, pass them forward.
    Attachments:
    Capture40.JPG ‏366 KB

  • PS CS5: select color range not working properly

    The color range is a grate command but it doesn't work properly when dragging the eye dropper across the image. This is especially noticeable with a low range value. When you start the selection (without pressing the shift key) and drag across the image only the end point is selected instead of the whole trace. Second, when dragging with the shift key pressed not the trace is added to the selection but a rectangular area. You can easily try this out by creating any one color image and lower the range value to about 5.
    In my opinion this is a bug or am I missing something?

    Hello,
    When you start the selection (without pressing the shift key) and drag across the image only the end point is selected instead of the whole trace.
    This behavior is as designed.  When you make a selection without holding the shift key, and you have the first eyedropper selected in the menu (the one that doesn't have a plus or minus sign) you are a making an initial selection on the image.  If you hold and drag this selection, it will just change the initial selection to match whatever destination you prefer on the image.
    Second, when dragging with the shift key pressed not the trace is added to the selection but a rectangular area.
    I can reproduce this behavior, too.  I believe this is also as designed, because the range is too small to make an organic looking selection.  I think the more standard workflow is to start with the range high (100%), make the selection of the localized color area you want to mask, and then reduce the range value as needed.
    Color Range isn't terribly intuitive to me, but it can be a powerful selection tool.  Photoshop Evangelist Russell Brown has a really good tutorial on Adobe TV about using color range.  Have you seen this before?
    http://tv.adobe.com/watch/the-russell-brown-show/the-secret-life-of-color-range/
    Hope this helps!

  • Several Standard functions are not working properly in CRM Web

    We are working on different ABAP developments embedded on a Web environment, and we are facing some issues with different standard functions. This functions such as GUI_DOWNLOAD, GUI_UPLOAD, MS_EXCEL_OLE_STANDARD_DAT, POPUP_TO_CONFIRM which are used in the ABAP developments work fine on the GUI environment while in the WEB environment they do not work.
    This functions allow us to perform files uploads and downloads in .txt format as well as in .xls format.
    Some of the suggested solutions were to solve this by using BSP application or Web Dynpros.
    Does this WEB tool contain any update, SAP note or any function which may replace the 4 functions mentioned above is order to solve this issue?
    Thanks in advance
    Best Regards,
    Alexis Chavero.

    There are no standard functions in Web UI  that replicate what these functions do in GUI. This was discussed before [here|Read file from presentation server (like GUI_UPLOAD);. As far as I know, we have to code ourselves. One way to try is published [here|http://wiki.sdn.sap.com/wiki/display/CRM/CRMWebUI-UploadingdatafromExcelfiles].

  • My Open 'New Document' function is not working properly on Illustrator CS5

    When I open a 'New Document' a message pops up saying 'Print.ai' is not working, I wanted to open a custom 'New Document Profile' not print.  The custom option is grayed out and I cannot select it.  What do I do?

    If you can create a new document by any means, then set up the document the way you want the preset to be, and save the file here:
    ~/Library/Application Support/Adobe/Adobe Illustrator CS5/en_US/New Document Profiles
    You might need to delete/replace the faulty Print.ai file.

  • My copy and paste functions are not working properly since iOS 8 update

    Ever since I updated to iOS 8 on my iPhone 4s the copy and paste function isn't working. It'll work the first time but any time I copy something else it pastes the first thing I copy. The only fix I've found is rebooting the phone but that is a pain to do every time I want to copy something and should be very unnecessary. I updated to 8.0.2 but that didn't fix it.

    Have you tried rebooting?

  • Search function does not work properly

    when trying the search function in the new forum design, i'm not able to restrict the search to a specific community.
    typing in my search words an then clicking the option button i can select a community, but when i then click "search" again, i only get this comment:
    'It appears you're not allowed to view what you requested. You might contact your administrator if you think this is a mistake."

    Just tested that in a couple of communities, and it worked as expected.
    For example, I entered the term 'search' here in this community, and a popup with ten results appeared.
    All looks like this:
    Only for ... Communities looks like this:
    View All Results takes me to a search page with at least two pages of results from this forum:
    Pretty sure that's all the search function can be expected to do ... when it's working.

Maybe you are looking for

  • Migrate to Oracle 9.2.0.5 or 9.2.0.6?

    We are in the process of migrating (upgrading) several applications from current Oracle Db versions 8.1.7/9i/9.2.0.2 to Oracle 9.2.0.5. Most of the applications use 9.2.0.2 on Solaris 8. Few are on 8.1.7, solaris 8 and few on 9i on Tru-64 unix. We wo

  • Inserting hypertext link in a Standard Text ?

    Hi all, Is it possible to insert an http link in a standard text. What I'm looking for, for example : VL02N -> Header Text -> ( I create a new text ) which will contains : 'http://www.google.com'. So that, if I click on, it opens IExplorer with the r

  • Iphoto 2 / 3000 photos /  REALLY slow

    Hello. I am currently using iphoto 2 on my g5 running tiger. my iphoto program has been giving me such a difficult time lately. no matter what i want it to do, it takes forever and the spinning beachball shows up. could this have anything to do with

  • Raw material inventory report

    Hi SAP GURUS, 1) Is there any standard Raw Material Inventory report that shows value by inventory type (scrap, alloys, principal supplies,  spare parts and minor supplies, WIP, finished goods, graphite, and the reserves for those material types 2) A

  • ClassCastException in OIM Pre-Populate Adapter

    Hi, I am trying to prepopulate an integer field (eg.employeenumber) in my Process Form. 1 .When I tried using the OOTB "DB Transfer Value" adapter,which has an String as Adapter Variable,the field is getting populated with value "0". 2.I created my o