Author: poeml Date: Mon Dec 7 04:13:36 2009 New Revision: 7925 URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=7925&view=rev Log: mb db shell: use os.execlp instead of os.system, because the latter doesn't pass SIGCONT to the subprocess after suspension 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=7925&r1=7924&r2=7925&view=diff ============================================================================== --- trunk/mirrordoctor/mb/dbmaint.py (original) +++ trunk/mirrordoctor/mb/dbmaint.py Mon Dec 7 04:13:36 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') - os.environ['PGDATABASE'] = c.get('dbname') - os.system('psql') + # my python-2.6.0 segfaults when trying to use os.exec* without an argument for the command. + os.execlp('psql', c.get('dbname')) _______________________________________________ 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 Mon Dec 07 2009 - 03:13:39 GMT
This archive was generated by hypermail 2.3.0 : Mon Feb 20 2012 - 23:47:04 GMT