summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbjh <bjh@13f79535-47bb-0310-9956-ffa450edef68>2005-07-03 04:00:59 +0000
committerbjh <bjh@13f79535-47bb-0310-9956-ffa450edef68>2005-07-03 04:00:59 +0000
commit7b2bb1dc793b2211231ca6c6cb7d5c8c5b9f3f9d (patch)
tree175cd336aadb3dac264120cf6e68284ba2023acf
parentf512114368a7034ac29e3840b1c15cc2b7330e3e (diff)
downloadlibapr-7b2bb1dc793b2211231ca6c6cb7d5c8c5b9f3f9d.tar.gz
OS/2: Fix crash in apr_proc_create with non-shell type process creation where
the .exe extension is not given. Was trying to close an apr_file_t that had failed to open, causing a segfault. Backport from trunk of r208879. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@208883 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--threadproc/os2/proc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/threadproc/os2/proc.c b/threadproc/os2/proc.c
index b8bc420f8..686b800fe 100644
--- a/threadproc/os2/proc.c
+++ b/threadproc/os2/proc.c
@@ -368,8 +368,9 @@ APR_DECLARE(apr_status_t) apr_proc_create(apr_proc_t *proc, const char *progname
interpreter[0] = 0;
}
}
+
+ apr_file_close(progfile);
}
- apr_file_close(progfile);
}
i = 0;