X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=fish%2Frc.c;h=a2bde4ae1cca3d999ff002d1c89ad57f7c9cd275;hp=2d2f22778a29a18ce8155593786b697fd4ad0da9;hb=371e83c0902d0f6949a09095b1b10280d8881aac;hpb=be728962ff636e260f09dca6a1175c442d687551 diff --git a/fish/rc.c b/fish/rc.c index 2d2f227..a2bde4a 100644 --- a/fish/rc.c +++ b/fish/rc.c @@ -198,7 +198,12 @@ rc_listen (void) if (pid > 0) { /* Parent process. */ - printf ("GUESTFISH_PID=%d; export GUESTFISH_PID\n", pid); + + if (!remote_control_csh) + printf ("GUESTFISH_PID=%d; export GUESTFISH_PID\n", pid); + else + printf ("setenv GUESTFISH_PID %d\n", pid); + fflush (stdout); _exit (0); }