summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <monty@donna.mysql.com>2000-12-16 14:26:00 +0200
committerunknown <monty@donna.mysql.com>2000-12-16 14:26:00 +0200
commit77a3ea5103f73aac2e3c8868abb2c93c8d01184b (patch)
tree1b51ef155cbe56793f47118d59e7e635123a25a3 /sql
parent617acd7c2e4c9838c00fc998c4de72d51675aff3 (diff)
downloadmariadb-git-77a3ea5103f73aac2e3c8868abb2c93c8d01184b.tar.gz
Backed out the new LARGEFILE patch as it broked several things
acinclude.m4: Backed out the new LARGEFILE patch as it broked several things on Linux configure.in: Backed out the new LARGEFILE patch as it broked several things on Linux include/my_sys.h: Store names for temporary files sql/mysqld.cc: Fixed small problem with pid files
Diffstat (limited to 'sql')
-rw-r--r--sql/mysqld.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc
index 67e2c2f861c..1f93e6baf67 100644
--- a/sql/mysqld.cc
+++ b/sql/mysqld.cc
@@ -1158,7 +1158,7 @@ static void *signal_hand(void *arg __attribute__((unused)))
{
char buff[21];
sprintf(buff,"%lu",(ulong) getpid());
- (void) my_write(pidFile, buff,sizeof(buff),MYF(MY_WME));
+ (void) my_write(pidFile, buff,strlen(buff),MYF(MY_WME));
(void) my_close(pidFile,MYF(0));
}
}