mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-12-22 20:32:38 +01:00
Merge pull request #59 from mundifex/stash-deadlock-fix
Fix deadlock in stash levels
This commit is contained in:
commit
1606e0565e
1 changed files with 2 additions and 2 deletions
|
@ -34,12 +34,12 @@ while(true) {
|
|||
STDOUT->flush();
|
||||
|
||||
$s = "";
|
||||
$command = $s2 . "\necho MAGIC\n";
|
||||
$command = $s2 . "\necho -e \"\\v\"\n";
|
||||
print $in $command;
|
||||
|
||||
inner_while: while (true) {
|
||||
$line = <$out>;
|
||||
if ($line eq "MAGIC\n") {
|
||||
if ($line =~ s/\cK//) {
|
||||
STDOUT->flush();
|
||||
last inner_while;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue