mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
Merge sgluhov@bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/home/gluh/MySQL/Devel/mysql-4.1
This commit is contained in:
commit
9f5a51e8d6
1 changed files with 7 additions and 1 deletions
|
@ -6749,9 +6749,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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue