-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

On Fri, 13 Dec 2002, imacat wrote:

> >Description:
>         I found 3 syntax errors found in safe_mysqld (and safe_mysqld.sh),
> in both source and binary distribution of MySQL 3.23.54.  Since syntax errors
> are appearent, so I just post the patch file here to fix it.

Thanks!

> diff -u -r mysql-3.23.54/scripts/safe_mysqld.sh 
>mysql-3.23.54-fixsafemysqld/scripts/safe_mysqld.sh
> --- mysql-3.23.54/scripts/safe_mysqld.sh        Thu Dec  5 17:37:05 2002
> +++ mysql-3.23.54-fixsafemysqld/scripts/safe_mysqld.sh  Fri Dec 13 12:11:30 2002
> @@ -159,11 +159,11 @@
>    NOHUP_NICENESS=`nohup nice 2>&1`
>    if test $? -eq 0 && test x"$NOHUP_NICENESS" != x0 && nice --1 echo foo > 
>/dev/null 2>&1
>    then
> -    if $NOHUP_NICENESS -gt 0
> +    if test $NOHUP_NICENESS -gt 0

Applied.

>      then
> -      $NOHUP_NICENESS="nice --$NOHUP_NICENESS nohup"
> +      NOHUP_NICENESS="nice --$NOHUP_NICENESS nohup"

Applied - both of these had already been reported to us.

>      else
> -      NOHUP_NICENESS="nice -$NOHUP_NICENESS nohup"
> +      NOHUP_NICENESS="nice --$NOHUP_NICENESS nohup"

Actually, this is done intenionally. If the niceness is below zero, it
already includes one minus-sign, so we only need to add one more instead
of two.

I was initally planning on rewriting this part to use "nohup -n", but this
parameter is not used on all platforms yet. Therefore Monty rewrote it to
be more portable. Unfortunately he obviously did it in a hurry :(
It's fixed in the BK tree now.

Thanks for your contribution!

Bye,
        LenZ
- -- 
For technical support contracts, visit https://order.mysql.com/?ref=mlgr
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /      Mr. Lenz Grimmer <[EMAIL PROTECTED]>
 / /|_/ / // /\ \/ /_/ / /__     MySQL AB, Production Engineer
/_/  /_/\_, /___/\___\_\___/     Hamburg, Germany
       <___/   www.mysql.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)
Comment: For info see http://quantumlab.net/pine_privacy_guard/

iD8DBQE9+duLSVDhKrJykfIRAtjZAJ9uNzWLZu4vqS6lBhO4K55pfKrqCgCeLBB2
rvLFCzz3jaXnTzsse3A1ENM=
=UCre
-----END PGP SIGNATURE-----


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to