CVS update: php31/ext/mysql
| From: | rasmus | Date: | Sat, 22 Aug 1998 13:45:46 +0000 |
| Subject: | CVS update: php31/ext/mysql | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-475@lists.php.net to get a copy of this message | ||
Date: Saturday August 22, 1998 @ 9:45
Author: rasmus
Update of /repository/php31/ext/mysql
In directory asf:/export/home/rasmus/php31/ext/mysql
Modified Files:
mysql.c
Log Message:
Apache work: we don't need this signal handling stuff
Index: php31/ext/mysql/mysql.c
diff -c php31/ext/mysql/mysql.c:2.2 php31/ext/mysql/mysql.c:2.3
*** php31/ext/mysql/mysql.c:2.2 Thu Aug 20 17:50:24 1998
--- php31/ext/mysql/mysql.c Sat Aug 22 09:45:43 1998
***************
*** 27,33 ****
+----------------------------------------------------------------------+
*/
! /* $Id: mysql.c,v 2.2 1998/08/20 21:50:24 zeev Exp $ */
/* TODO:
--- 27,33 ----
+----------------------------------------------------------------------+
*/
! /* $Id: mysql.c,v 2.3 1998/08/22 13:45:43 rasmus Exp $ */
/* TODO:
***************
*** 179,194 ****
#endif
MySQL_TLS_VARS;
- #if APACHE
- handler = signal(SIGPIPE, SIG_IGN);
- #endif
-
mysql_close(link);
- #if APACHE
- signal(SIGPIPE,handler);
- #endif
-
efree(link);
MySQL_GLOBAL(php3_mysql_module).num_links--;
}
--- 179,186 ----
***************
*** 200,215 ****
#endif
MySQL_TLS_VARS;
- #if APACHE
- handler = signal(SIGPIPE, SIG_IGN);
- #endif
-
mysql_close(link);
- #if APACHE
- signal(SIGPIPE,handler);
- #endif
-
free(link);
MySQL_GLOBAL(php3_mysql_module).num_persistent--;
MySQL_GLOBAL(php3_mysql_module).num_links--;
--- 192,199 ----
***************
*** 471,488 ****
RETURN_FALSE;
}
/* ensure that the link did not die */
- #if APACHE
- handler=signal(SIGPIPE,SIG_IGN);
- #endif
#if defined(mysql_errno) && defined(CR_SERVER_GONE_ERROR)
mysql_stat(le->ptr);
if (mysql_errno((MYSQL *)le->ptr) == CR_SERVER_GONE_ERROR) {
#else
if (!strcasecmp(mysql_stat(le->ptr),"mysql server has gone away")) { /* the link
died */
#endif
- #if APACHE
- signal(SIGPIPE,handler);
- #endif
if (mysql_connect(le->ptr,host,user,passwd)==NULL) {
php3_error(E_WARNING,"MySQL: Link to server lost, unable to reconnect");
_php3_hash_del(plist, hashed_details, hashed_details_length+1);
--- 455,466 ----
***************
*** 490,498 ****
RETURN_FALSE;
}
}
- #if APACHE
- signal(SIGPIPE,handler);
- #endif
mysql = (MYSQL *) le->ptr;
}
return_value->value.lval = php3_list_insert(mysql,MySQL_GLOBAL(php3_mysql_module).le_plink);
--- 468,473 ----
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net