Printf works for a process that executes on the master node (perhaps
doing a printf), does a bproc_move() to a compute node, then does a
printf on the compute node.
Printf does not work for a process for which bpsh does an execmove to
a compute node and does a printf from there. In part this failure is
due to a failing sys_dup2() done on the compute node to connect the
I/O sockets to the stdin, stdout, and stderr file descriptor numbers,
because one or more of those stdin/stdout/stderr file descriptors are
open (even after the kernel/slave.c code closes those file descriptors
in the newly forked stub). I'm fixing that problem now.
--
John Hawkes
On Sat, Feb 11, 2012 at 8:29 AM, Adam Young <ayoung(a)redhat.com> wrote:
On 02/10/2012 04:12 PM, John Hawkes wrote:
syslog() works, but the printf() doesn't -- and the printf() is a
crucial piece. I'm in the midst of trying to figure out why printf()
doesn't work. However, a simple program that does a bproc_move() to a
compute node and executes a printf() *does* work.
I'm a little confused by this statement. When does and does not printf
work?
_______________________________________________
Bproc mailing list
Bproc(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/bproc