Back-patch fix to allow createuser to exit on control-C (Oliver Elphick)
authorTom Lane <[email protected]>
Fri, 16 May 2003 15:17:02 +0000 (15:17 +0000)
committerTom Lane <[email protected]>
Fri, 16 May 2003 15:17:02 +0000 (15:17 +0000)
src/bin/scripts/createuser

index 0ac8cadc949039d9ea55d8451eed9a4dbd8631a2..ad306665c1ee3ad1523ade1fb8424e6f36f84952 100644 (file)
@@ -179,7 +179,7 @@ fi
 # 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
+trap 'stty echo >/dev/null 2>&1; echo; exit 1' 1 2 3 15
 
 # Get missing user attributes