Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ham_en/ham/clientlib/ha_reopen.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ham_en/ham/clientlib/ha_reopen.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ham_en/ham/clientlib/ha_reopen.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ham_en/ham/clientlib/ha_reopen.html on line 8
Reopen a connection while performing recovery
#include <ha/fcntl.h>
int ha_reopen(int oldfd,
const char *path,
int oflag, ...);
libha
You can use the ha_reopen() convenience function
to reopen a connection while in the recovery phase. The
oldfd argument refers to the connection that has
failed. The ha_reopen() function closes the
previous connection and opens a new connection using the
parameters specified by calling open().
The ha_reopen() function also verifies that the
new connection ID returned is the same as the
oldfd (as required by the HA library mechanism).
If the new connection ID obtained is not the same as oldfd, it will
attempt to obtain the same fd, by calling the dup2() function.
A new connection ID or -1 if an error occurred (errno is set).
The ha_reopen() call returns errors as returned by
the underlying open() call.
QNX Neutrino
Safety: | |
Cancellation point |
No |
Interrupt handler |
No |
Signal handler |
No |
Thread |
Yes |
ha_attach(),
ha_close(),
ha_detach(),
ha_open(),
ReConnect_Attach()
In the Library Reference:
open()
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ham_en/ham/clientlib/ha_reopen.html on line 118
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ham_en/ham/clientlib/ha_reopen.html on line 118