git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
inspector: Apps in Windows VMs are now listed - update documentation.
[libguestfs.git]
/
fish
/
rc.c
diff --git
a/fish/rc.c
b/fish/rc.c
index
e637fc6
..
a2bde4a
100644
(file)
--- a/
fish/rc.c
+++ b/
fish/rc.c
@@
-198,7
+198,12
@@
rc_listen (void)
if (pid > 0) {
/* Parent process. */
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);
}
fflush (stdout);
_exit (0);
}