mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-29 09:27:56 +00:00
sem: --fg --line-buffer failed.
This commit is contained in:
parent
11a05ca1a3
commit
ad163a999e
|
@ -5450,9 +5450,9 @@ sub set_non_blocking {
|
|||
for my $fdno (1,2) {
|
||||
my $fdr = $self->fh($fdno,'r');
|
||||
my $flags;
|
||||
fcntl($fdr, &F_GETFL, $flags) || die $!; # Get the current flags on the filehandle
|
||||
$flags |= &O_NONBLOCK; # Add non-blocking to the flags
|
||||
fcntl($fdr, &F_SETFL, $flags) || die $!; # Set the flags on the filehandle
|
||||
fcntl($fdr, &::F_GETFL, $flags) || die $!; # Get the current flags on the filehandle
|
||||
$flags |= &::O_NONBLOCK; # Add non-blocking to the flags
|
||||
fcntl($fdr, &::F_SETFL, $flags) || die $!; # Set the flags on the filehandle
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -42,3 +42,6 @@ sem --wait
|
|||
|
||||
echo '### Test bug #33621: --bg -p should give an error message'
|
||||
stdout parallel -p --bg echo x{}
|
||||
|
||||
echo '### Failed on 20141226'
|
||||
sem --fg --line-buffer --id lock_id echo OK
|
||||
|
|
|
@ -96,3 +96,5 @@ done 4
|
|||
40
|
||||
### Test bug #33621: --bg -p should give an error message
|
||||
parallel: Error: Jobs running in the background cannot be interactive.
|
||||
### Failed on 20141226
|
||||
OK
|
||||
|
|
Loading…
Reference in a new issue