Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 343573

Summary: Update the error handling of scid to deal with the socket exception
Product: [Tools] PTP Reporter: rong li <ronglli>
Component: SCIAssignee: rong li <ronglli>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: tuhongj
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Submit the patch for updating the error handling of scid g.watson: iplog+

Description rong li CLA 2011-04-21 12:11:08 EDT
Build Identifier: 

After throwing the socket exception, such as the listen port is used up, 
scid does not handle it correctly. 
Update the scid to catch this exception, and do the error handling.

Reproducible: Always
Comment 1 rong li CLA 2011-04-21 12:15:14 EDT
Created attachment 193857 [details]
Submit the patch for updating the error handling of scid

Submit the patch for updating the error handling of scid
Comment 2 Tu Hong Jun CLA 2011-04-21 22:26:18 EDT
Could you change the code from exit(1) to exit(-1) to comply with the existing coding style?
Comment 3 Tu Hong Jun CLA 2011-04-22 01:08:21 EDT
I have applied the patch with the change I mentioned.
Comment 4 rong li CLA 2011-04-22 04:36:54 EDT
Thanks for your comments. In the current source codes, scia.cpp uses "exit(1)" instead of "exit(-1)". We can change it to "exit(-1)" to make all the existing coding style consistent.
Comment 5 rong li CLA 2012-11-06 05:07:15 EST
The codes have already been committed into the branch.