bug: erroronous ret-value for system() call in 2.6-kernel

From: "Niklas Andersson" <niklas(dot)andersson(at)cport(dot)se>
To: pgsql-bugs(at)postgresql(dot)org
Subject: bug: erroronous ret-value for system() call in 2.6-kernel
Date: 2005-02-07 08:28:53
Message-ID: 2470.85.137.51.174.1107764933.squirrel@webmail.cport.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi!

Had a curious problem with postgresql 7.0.3. Could create a DB if I run
kernel 2.4 but not in 2.6. Had a look in
/src/backend/commands/dbcommands.c and finaly found out that you use an
errorounous ret value from the system()-call. You checked for: if
(system(buf) != 0)

.. I changed those lines to if (system(buf) != -1 ) and it worked. (Thanks
to "man 3 system"

regards
Niklas Andersson

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Kris Jurka 2005-02-07 09:30:20 Re: timezone offsets and documentation
Previous Message Michael Guerin 2005-02-07 02:58:27 ERROR: cache lookup failed for relation 17442