Commit e4bdf260 authored by monty@hundin.mysql.fi's avatar monty@hundin.mysql.fi
Browse files

Small safety fix

parent 66a31433
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -41178,8 +41178,7 @@ of the following flags in very special circumstances:
A @code{MYSQL*} connection handle if the connection was successful,
@code{NULL} if the connection was unsuccessful.  For a successful connection,
the return value is the same as the value of the first parameter, unless you
pass @code{NULL} for that parameter.
the return value is the same as the value of the first parameter.
@subsubheading Errors
+2 −0
Original line number Diff line number Diff line
@@ -22,7 +22,9 @@
#include <global.h>
#include <m_ctype.h>
#include <my_sys.h>
#ifndef SCO
#include <m_string.h>
#endif
#include <sys/types.h>
#include <sys/socket.h>
#ifndef HAVE_BROKEN_NETINET_INCLUDES
+5 −3
Original line number Diff line number Diff line
.TH SAFE_MYSQLD	  1 "19 December 2000"
.TH SAFE_MYSQLD	  1 "19 December 2000" "safe_mysqld (mysql)" mysql.com
.SH NAME
.BR safe_mysqld
is the recommended way to start a mysqld daemon on Unix. safe_mysqld adds some safety features such as restarting the server when an error occurs and logging run-time information to a log file. 
safe_mysqld \- start the mysqld daemon on Unix.
.SH SYNOPSIS
.B safe_mysqld
.RB [ \-\-basedir=\fP\fIpath\fP ]
@@ -21,6 +20,9 @@ is the recommended way to start a mysqld daemon on Unix. safe_mysqld adds some s
.RB [ \-\-timezone=# ]
.RB [ \-\-user=# ]
.SH DESCRIPTION
safe_mysqld adds some safety features such as restarting the server when an
error occurs and logging run-time information to a log file.
.BR
.TP 
.BR \-\-basedir=\fP\fIpath \fP
.TP 
+4 −2
Original line number Diff line number Diff line
@@ -41,8 +41,10 @@ void my_b_seek(IO_CACHE *info,my_off_t pos)
    byte* try_rc_pos;
    try_rc_pos = info->rc_pos + (pos - info->pos_in_file);
    if (try_rc_pos >= info->buffer && try_rc_pos <= info->rc_end)
    {
      info->rc_pos = try_rc_pos;
    else
      return;
    }
    flush_io_cache(info);
  }
  info->pos_in_file=pos;
+1 −1
Original line number Diff line number Diff line
@@ -68,7 +68,7 @@ for i in extra/comp_err extra/replace extra/perror extra/resolveip \
  client/mysqladmin client/mysqldump client/mysqlimport client/mysqltest \
  client/.libs/mysql client/.libs/mysqlshow client/.libs/mysqladmin \
  client/.libs/mysqldump client/.libs/mysqlimport client/.libs/mysqltest \
  client/.libs/mysqlcheck
  client/.libs/mysqlcheck client/.libs/mysqlbinlog
do
  if [ -f $i ]
  then