Cannot break out of createuser

From: Oliver Elphick <olly(at)lfix(dot)co(dot)uk>
To: pgsql-hackers(at)postgresql(dot)org
Cc: 177053(at)bugs(dot)debian(dot)org, 177053-submitter(at)bugs(dot)debian(dot)org
Subject: Cannot break out of createuser
Date: 2003-02-07 17:44:06
Message-ID: 1044639846.6891.97.camel@linda.lfix.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(dot)Elphick(at)lfix(dot)co(dot)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 before him." Habakkuk 2:20

Browse pgsql-hackers by date

  From Date Subject
Next Message greg 2003-02-07 20:06:00 Re: PGP signing releases
Previous Message Lance Thomas 2003-02-07 16:35:25 Potential bug -- script that drops postgres server