in reply to Re: parent process stuck in read(2) on pipe opened to child process using backtick
in thread parent process stuck in read(2) on pipe opened to child process using backtick
You are absolutely right - can't thank you enough. I checked - sleep is holding on to the pipe that's why read(2) doesn't exit. I can get really dumb at times - how hard was that to figure out :) Also, when the child is a perl script instead of bash/sh, killing it takes away the sleep too. That explains why I saw the issue only with bash/sh. Shouldn't bash/sh do the same, i.e., take care of cleaning up it's child processes??? Maybe this is not the right forum for bash/sh but what's the harm in asking :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: parent process stuck in read(2) on pipe opened to child process using backtick
by Eliya (Vicar) on Feb 14, 2012 at 15:21 UTC | |
by choroba (Cardinal) on Feb 14, 2012 at 23:13 UTC | |
by Eliya (Vicar) on Feb 15, 2012 at 00:40 UTC | |
by choroba (Cardinal) on Feb 15, 2012 at 01:10 UTC | |
by Eliya (Vicar) on Feb 15, 2012 at 02:18 UTC |