Author: poeml Date: Tue Dec 22 01:28:34 2009 New Revision: 7934 URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=7934&view=rev Log: mb db shell: the command worked only by accident -- os.execlp() was used wrongly (missing the 0th argument). Modified: trunk/mirrordoctor/mb/dbmaint.py Modified: trunk/mirrordoctor/mb/dbmaint.py URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain/trunk/mirrordoctor/mb/dbmaint.py?rev=7934&r1=7933&r2=7934&view=diff ============================================================================== --- trunk/mirrordoctor/mb/dbmaint.py (original) +++ trunk/mirrordoctor/mb/dbmaint.py Tue Dec 22 01:28:34 2009 _at_@ -53,5 +53,5 @@ os.environ['PGPORT'] = c.get('dbport', '5432') os.environ['PGUSER'] = c.get('dbuser') os.environ['PGPASSWORD'] = c.get('dbpass') - # my python-2.6.0 segfaults when trying to use os.exec* without an argument for the command. - os.execlp('psql', c.get('dbname')) + os.environ['PGDATABASE'] = c.get('dbname') + os.execlp('psql', 'psql') _______________________________________________ mirrorbrain-commits mailing list Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/ Note: To remove yourself from this list, send a mail with the content unsubscribe to the address mirrorbrain-commits-request_at_mirrorbrain.orgReceived on Tue Dec 22 2009 - 00:28:38 GMT
This archive was generated by hypermail 2.3.0 : Mon Feb 20 2012 - 23:47:04 GMT