Redirecting stdout using dup/dup2

Olof Larsson larsso at space.se
Tue Sep 24 10:58:58 UTC 2002


Hi all,

Does anyone know if redirecting stdout to a socket using dup2 or dup is
supposed to work? Something along the following:

fd = accept(...)
dup2(fd,1)
printf("foo");

It works fine in Linux, but unfortunately I get nothing through on the
receiving side when I try the same thing in RTEMS.

Thanks,

Olof




More information about the users mailing list