Project

General

Profile

Bug #499

"interrupted system call" when using "tee" builtin in ksh

Added by Roland Mainz about 9 years ago. Updated about 9 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2010-12-10
Due date:
% Done:

0%

Estimated time:
Difficulty:
Tags:

Description

The following ksh testcase...
-- snip --
builtin tee

rm f 'pipe'
mknod 'pipe' p
(sleep 4; cat pipe) &
(sleep 2; print 'aa') | tee -a 'pipe'
rm 'pipe'
wait
-
snip --
... 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

Also available in: Atom PDF