Click here to Skip to main content
15,914,452 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Question about stdin under multi-process environment. Pin
George226-Jul-03 0:58
George226-Jul-03 0:58 
GeneralRe: Question about stdin under multi-process environment. Pin
Ryan Binns26-Jul-03 1:01
Ryan Binns26-Jul-03 1:01 
GeneralRe: Question about stdin under multi-process environment. Pin
George226-Jul-03 1:05
George226-Jul-03 1:05 
GeneralRe: Question about stdin under multi-process environment. Pin
Ryan Binns26-Jul-03 2:10
Ryan Binns26-Jul-03 2:10 
GeneralRe: Question about stdin under multi-process environment. Pin
George226-Jul-03 2:16
George226-Jul-03 2:16 
GeneralRe: Question about stdin under multi-process environment. Pin
Ryan Binns26-Jul-03 2:38
Ryan Binns26-Jul-03 2:38 
GeneralRe: Question about stdin under multi-process environment. Pin
George226-Jul-03 2:44
George226-Jul-03 2:44 
GeneralRe: Question about stdin under multi-process environment. Pin
Johnny ²26-Jul-03 4:28
Johnny ²26-Jul-03 4:28 
Having both parent and child reading from stdin is just asking for trouble, and I cant think of a good reason why you would want to do this. If you want to communicate with the child process then you are better off using some other method. A typical step is to use 'dup2' to map the stdin/stdout to something else. For example, the inetd daemon uses dup2 to map stdin and stdout to a socket. That way any program that just makes use of stdin/stdout can be used with the daemon, without the program needing to know its communicating over a socket. The same could be done with named and un-named pipes
GeneralRe: Question about stdin under multi-process environment. Pin
George226-Jul-03 16:48
George226-Jul-03 16:48 
GeneralRe: Question about stdin under multi-process environment. Pin
Johnny ²26-Jul-03 21:30
Johnny ²26-Jul-03 21:30 
GeneralRe: Question about stdin under multi-process environment. Pin
George227-Jul-03 1:14
George227-Jul-03 1:14 
GeneralRe: Question about stdin under multi-process environment. Pin
Johnny ²27-Jul-03 6:52
Johnny ²27-Jul-03 6:52 
GeneralRe: Question about stdin under multi-process environment. Pin
George227-Jul-03 15:40
George227-Jul-03 15:40 
GeneralRe: Question about stdin under multi-process environment. Pin
Bob Stanneveld25-Jul-03 23:55
Bob Stanneveld25-Jul-03 23:55 
GeneralRe: Question about stdin under multi-process environment. Pin
George226-Jul-03 1:03
George226-Jul-03 1:03 
GeneralRe: Question about stdin under multi-process environment. Pin
Bob Stanneveld27-Jul-03 1:09
Bob Stanneveld27-Jul-03 1:09 
GeneralRe: Question about stdin under multi-process environment. Pin
George227-Jul-03 1:15
George227-Jul-03 1:15 
GeneralLinking error Pin
eddymohd25-Jul-03 17:58
eddymohd25-Jul-03 17:58 
GeneralRe: Linking error Pin
Michael Dunn25-Jul-03 18:20
sitebuilderMichael Dunn25-Jul-03 18:20 
GeneralRe: Linking error Pin
eddymohd25-Jul-03 19:08
eddymohd25-Jul-03 19:08 
GeneralRe: Linking error Pin
Bob Stanneveld25-Jul-03 19:32
Bob Stanneveld25-Jul-03 19:32 
GeneralRe: Linking error Pin
Michael Dunn25-Jul-03 20:21
sitebuilderMichael Dunn25-Jul-03 20:21 
GeneralRe: Linking error Pin
Bob Stanneveld25-Jul-03 23:45
Bob Stanneveld25-Jul-03 23:45 
GeneralRe: Linking error Pin
Atlantys26-Jul-03 10:32
Atlantys26-Jul-03 10:32 
GeneralGetting Selection from CHTMLEditView Pin
Matt Gates25-Jul-03 15:53
Matt Gates25-Jul-03 15:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.