git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d8807e
)
fish: More portable export sh statment.
author
Richard W.M. Jones
<rjones@redhat.com>
Fri, 5 Nov 2010 15:04:08 +0000
(15:04 +0000)
committer
Richard W.M. Jones
<rjones@redhat.com>
Fri, 5 Nov 2010 15:04:10 +0000
(15:04 +0000)
Don't depend on bash, but allow sh/dash/etc format:
GUESTFISH_PID=nn; export GUESTFISH_PID
(Thanks Eric Blake).
fish/rc.c
patch
|
blob
|
history
diff --git
a/fish/rc.c
b/fish/rc.c
index
e637fc6
..
2d2f227
100644
(file)
--- a/
fish/rc.c
+++ b/
fish/rc.c
@@
-198,7
+198,7
@@
rc_listen (void)
if (pid > 0) {
/* Parent process. */
- printf ("
export GUESTFISH_PID=%d
\n", pid);
+ printf ("
GUESTFISH_PID=%d; export GUESTFISH_PID
\n", pid);
fflush (stdout);
_exit (0);
}