On a Sun 4 under 4.0, you must #include <vfork.h> in order to use vfork reliably. If you don't do this in csh, you get wierd results. That may explain your problem.