dbTalk Databases Forums  

sqldetach fails to return

comp.databases.informix comp.databases.informix


Discuss sqldetach fails to return in the comp.databases.informix forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Joerg.Spilker@googlemail.com
 
Posts: n/a

Default sqldetach fails to return - 11-26-2007 , 07:05 AM






Iīve some problems using the sqldetach() function. Sometimes it
happens that the functions fails to return. This is probably because
there is some problem with the database server. Anyway, can i set a
timeout for the function so that it returns with a values < 0 and
errno shows the reason? I just want that my application can react and
hasnīt to be killed from an administrator.

Greetings, Joerg

Reply With Quote
  #2  
Old   
Art S. Kagel
 
Posts: n/a

Default Re: sqldetach fails to return - 11-26-2007 , 11:48 AM






On Nov 26, 7:05 am, Joerg.Spil... (AT) googlemail (DOT) com wrote:
Quote:
Iīve some problems using the sqldetach() function. Sometimes it
happens that the functions fails to return. This is probably because
there is some problem with the database server. Anyway, can i set a
timeout for the function so that it returns with a values < 0 and
errno shows the reason? I just want that my application can react and
hasnīt to be killed from an administrator.

Greetings, Joerg
Read in the ESQL/C or CLI manual about the call-back feature. This
provides a simple timeout mechanism. The alternative is to use the
signal() system call interface to set a SIGALRM handler and timer to
configure the timeout yourself (pretty much that's what the call-back
is doing for you under the hood).

Art S. Kagel


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.