Cannot break out of createuser - Mailing list pgsql-hackers

From Oliver Elphick
Subject Cannot break out of createuser
Date
Msg-id 1044639846.6891.97.camel@linda.lfix.co.uk
Whole thread Raw
List pgsql-hackers
It is not possible to break out of createuser with ctrl-c, ctrl-\ or
kill -TERM.

The reason is that this line:       # Don't want to leave the user blind if he breaks       # during password entry.
                                                         trap 'stty echo >/dev/null 2>&1' 1 2 3 15
 


should be:       trap 'stty echo >/dev/null 2>&1; exit 1' 1 2 3 15
or even       trap 'stty echo >/dev/null 2>&1' EXIT       
-- 
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight, UK                             http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C
========================================   "But the LORD is in his holy temple; let all the earth      keep silence
beforehim."           Habakkuk 2:20 
 



pgsql-hackers by date:

Previous
From: Teodor Sigaev
Date:
Subject: Re: Alpha version of contrib/tsearch is available for testing
Next
From: Rajesh Kumar Mallah
Date:
Subject: Re: [OpenFTS-general] Alpha version of contrib/tsearch is available for testing