X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=fish%2Frc.c;h=a2bde4ae1cca3d999ff002d1c89ad57f7c9cd275;hp=e637fc6ca8f77270fda66abfa9a5a8ff0f1822d9;hb=e44cf42f362d793c47d892a18a6853d88abd6ecb;hpb=6391d1a7cfa10337a75465c72d49df3c9ebc65ca diff --git a/fish/rc.c b/fish/rc.c index e637fc6..a2bde4a 100644 --- a/fish/rc.c +++ b/fish/rc.c @@ -198,7 +198,12 @@ rc_listen (void) if (pid > 0) { /* Parent process. */ - printf ("export GUESTFISH_PID=%d\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); }