Actions
Bug #499
closed"interrupted system call" when using "tee" builtin in ksh
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2010-12-10
Due date:
% Done:
100%
Estimated time:
Difficulty:
Tags:
Gerrit CR:
External Bug:
Description
The following ksh testcase...
-- snip --
builtin tee
rm f 'pipe' snip --
mknod 'pipe' p
(sleep 4; cat pipe) &
(sleep 2; print 'aa') | tee -a 'pipe'
rm 'pipe'
wait
-
... generates an "interrupted system call" when using the "tee"
builtin within ksh. If "tee" is an external utility this does not happen (both use identical code, the issue in this case is that the builtin may get hit by the SIGCHLD and doesn't protect the |open()|-call against EINTR) ...
Files
Updated by Roland Mainz over 12 years ago
Updated by Electric Monk over 2 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
git commit b30d193948be5a7794d7ae3ba0ed9c2f72c88e0f
commit b30d193948be5a7794d7ae3ba0ed9c2f72c88e0f Author: Andy Fiddaman <omnios@citrus-it.co.uk> Date: 2021-01-30T17:13:33.000Z 13405 ksh93 update to 2012-08-01 13434 sh: mishandles backslash as last character of a block of input 11750 ksh mkdir builtin doesn't honor special file permissions 9199 ksh93 builtin *grep -v mishandles blank lines, blows up libgcrypt-config 6756 sh (and ksh) have issues with ${1+"$@"} 6520 ksh: sleep could wait forever 4860 ksh93: core in printf 3791 /bin/sh's builtin 'rm' busted: 'rm -f' without arguments returns error 1047 ksh overwrites child core files 880 ksh93 coredumps on 'unset' 499 "interrupted system call" when using "tee" builtin in ksh Reviewed by: Robert Mustacchi <rm@fingolfin.org> Reviewed by: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org> Reviewed by: Dominik Hassler <hadfl@omnios.org> Approved by: Rich Lowe <richlowe@richlowe.net>
Actions