--- startx-orig 2006-10-15 04:23:27 +0300 +++ startx 2006-11-07 18:47:31 +0200 @@ -144,6 +144,9 @@ wait "$xinit_pid" +# save dolphins, elecrtons, and errorlevels +return_val=$? + xinit_pid= if [ -n "$removelist" ]; then @@ -154,3 +157,5 @@ if [ -x "$DEALLOCVT" ]; then "$DEALLOCVT" fi + +exit $return_val