Skip to main content
17 events
when toggle format what by license comment
Jul 13, 2020 at 18:19 answer added lastbreath timeline score: 0
Dec 17, 2015 at 10:18 comment added ivcode If I fork a process and then if I want to redirect the stdout file descriptor of the child, from parent how can I achieve this?
Sep 17, 2014 at 17:13 comment added Pithikos @Random832 Well if I knew which diagram was correct then I would probably never had made this question.
Jan 5, 2012 at 22:14 vote accept Pithikos
Jan 5, 2012 at 18:21 comment added Random832 This is a poor diagram - it should show that file descriptor 4 means the fourth entry [well, fifth, it's counted from zero] of the file descriptor table on the left, not an entry which contains a "4". The actual "4" lives in your userspace variable containing the number. The diagram in the other question is much better.
Jan 5, 2012 at 18:11 answer added Michał Šrajer timeline score: 9
Jan 5, 2012 at 17:26 history tweeted twitter.com/#!/StackUnix/status/154977080436723714
Jan 5, 2012 at 16:36 history post merged (destination)
Jan 5, 2012 at 16:36 comment added Michael Mrozek @Pithikos Ok; I'm going to merge that one into this one then. In the future, this is what bounties are for
Jan 5, 2012 at 16:33 comment added Pithikos @Michael Mrozek This is indeed a duplicate. However I reedited the question as I didn't get any good explanation on the old one. (This scheme is also much more relevant to the question.)
Jan 5, 2012 at 16:23 comment added Michael Mrozek @jw013 I thought this sounded familiar. \@Pithikos How is this not a duplicate?
Jan 5, 2012 at 16:07 comment added jw013 related question?
Jan 5, 2012 at 16:04 comment added user13742 Good question! My guess is that the file descriptors are translated, so that the fd 4 in both processes are relative to it's own number of open fd's. Fd's 0-2 (stdin,stdout,sdterr) are always opened for a new process and the numbers are not reserved for only that process.
Jan 5, 2012 at 16:00 answer added user732 timeline score: 8
Jan 5, 2012 at 16:00 answer added jw013 timeline score: 47
Jan 5, 2012 at 15:55 history asked Pithikos CC BY-SA 3.0
Nov 8, 2011 at 0:14 answer added Gilles 'SO- stop being evil' timeline score: 32