aboutsummaryrefslogtreecommitdiffstats
path: root/src/dumm/guest.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2007-08-03 11:47:20 +0000
committerMartin Willi <martin@strongswan.org>2007-08-03 11:47:20 +0000
commit5ce04046f7bcf341ed0240ca87564f3d14064188 (patch)
tree4bca1acb4981db5ceec9d54ea45ee8a486aabc2b /src/dumm/guest.c
parentdfcdae033585a9686de392e7a30566ebda06bd0e (diff)
downloadstrongswan-5ce04046f7bcf341ed0240ca87564f3d14064188.tar.bz2
strongswan-5ce04046f7bcf341ed0240ca87564f3d14064188.tar.xz
proper shutdown
moved signal handler for SIGCHD and SIGHUP to dumm
Diffstat (limited to 'src/dumm/guest.c')
-rw-r--r--src/dumm/guest.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dumm/guest.c b/src/dumm/guest.c
index 6ba14e028..55d4f12b5 100644
--- a/src/dumm/guest.c
+++ b/src/dumm/guest.c
@@ -277,13 +277,13 @@ static bool mount_unionfs(private_guest_t *this)
char master[PATH_MAX];
char diff[PATH_MAX];
char mount[PATH_MAX];
-
- snprintf(master, sizeof(master), "%s/%s", this->dirname, MASTER_DIR);
- snprintf(diff, sizeof(diff), "%s/%s", this->dirname, DIFF_DIR);
- snprintf(mount, sizeof(mount), "%s/%s", this->dirname, UNION_DIR);
if (this->cowfs == NULL)
{
+ snprintf(master, sizeof(master), "%s/%s", this->dirname, MASTER_DIR);
+ snprintf(diff, sizeof(diff), "%s/%s", this->dirname, DIFF_DIR);
+ snprintf(mount, sizeof(mount), "%s/%s", this->dirname, UNION_DIR);
+
this->cowfs = cowfs_create(master, diff, mount);
if (this->cowfs)
{