Re: fork or exec thingy.

Jan Echternach (echter@informatik.uni-rostock.de)
Mon, 26 Jul 1999 15:31:17 +0200


On Sat, Jul 24, 1999 at 08:20:22PM -0700, Borislav Deianov wrote:
> The call to close_pgrp_pipe just calls close a couple of times. Even
> though it doesn't check for the return value of close, errno should
> not contain ECHILD.

This looks like a bug in the SIGCHLD handler of bash. It doesn't save
errno, therefore cluttering the errno value of whatever code was
interrupted by SIGCHLD.

But this bug only explains the unexpected error message, not why there
is an error.

-- 
Jan

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/