Changeset 5878 in /cluster/svnroot


Ignore:
Timestamp:
Feb 4, 2017 3:14:18 PM (4 years ago)
Author:
skylar
Message:

change back to tty1 after password change to avoid hang re #988

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bccd-ng/branches/skylar/bccd-3.4.0-build_ng/src/bin/bccd-passwd-wrapper

    r5877 r5878  
    3333}
    3434
    35 # Change terminal to tty1
    36 open(my $CHVT, '|-', '/bin/chvt', '2',)
     35my($Bccd,$user,$passwd,$CHVT);
     36
     37# Change terminal to tty2
     38open($CHVT, '|-', '/bin/chvt', '2',)
    3739    or die "Can't run chvt: $!\n";
    3840close($CHVT);
    3941
    40 my $Bccd = new Bccd();
    41 my $user = $ARGV[0];
    42 my $passwd = $Bccd->read_passwd();
     42$Bccd = new Bccd();
     43$user = $ARGV[0];
     44$passwd = $Bccd->read_passwd();
    4345
    4446if($passwd) {
     
    6264        close($WSHADOW);
    6365}
     66
     67# Change terminal back to tty1 to avoid hang
     68open($CHVT, '|-', '/bin/chvt', '1',)
     69    or die "Can't run chvt: $!\n";
     70close($CHVT);
Note: See TracChangeset for help on using the changeset viewer.