diff options
author | unknown <bar@mysql.com> | 2005-05-06 12:00:25 +0500 |
---|---|---|
committer | unknown <bar@mysql.com> | 2005-05-06 12:00:25 +0500 |
commit | e5950cb1539b43dd5446ef95bd8734cca098eb14 (patch) | |
tree | a2615fd36dd3e274f33a150f59f6e0e847597e5d /sql | |
parent | 930644731d2689929e2372110536c4fbc7330a60 (diff) | |
parent | 972c1573d1fade4a9ad4e0a853c8551e61a1d637 (diff) | |
download | mariadb-git-e5950cb1539b43dd5446ef95bd8734cca098eb14.tar.gz |
merging cp932 from 4.1
BitKeeper/etc/logging_ok:
auto-union
BitKeeper/deleted/.del-have_cp932.inc:
Delete: mysql-test/include/have_cp932.inc
BitKeeper/deleted/.del-ctype_cp932.result:
Delete: mysql-test/r/ctype_cp932.result
BitKeeper/deleted/.del-have_cp932.require:
Delete: mysql-test/r/have_cp932.require
BitKeeper/deleted/.del-ctype_cp932.test:
Delete: mysql-test/t/ctype_cp932.test
BitKeeper/deleted/.del-ctype-cp932.c:
Delete: strings/ctype-cp932.c
include/m_ctype.h:
Auto merged
mysys/charset-def.c:
Auto merged
sql/mysqld.cc:
Auto merged
Diffstat (limited to 'sql')
-rw-r--r-- | sql/mysqld.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc index 15624dfe80b..58020207a88 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -6990,9 +6990,15 @@ static void create_pid_file() char buff[21], *end; end= int10_to_str((long) getpid(), buff, 10); *end++= '\n'; - (void) my_write(file, (byte*) buff, (uint) (end-buff),MYF(MY_WME)); + if (!my_write(file, (byte*) buff, (uint) (end-buff), MYF(MY_WME | MY_NABP))) + { + (void) my_close(file, MYF(0)); + return; + } (void) my_close(file, MYF(0)); } + sql_perror("Can't start server: can't create PID file"); + exit(1); } |