fixed ruby rvm support

This commit is contained in:
roberto@quantal64
2012-06-03 18:32:05 +02:00
parent c2091c52eb
commit 4d25e05986
+7 -1
View File
@@ -272,6 +272,7 @@ void uwsgi_ruby_gem_set_apply(char *gemset) {
char *ptr = buffer;
for(i=0;i<size;i++) {
if (buffer[i] == '\n') {
buffer[i] = 0;
@@ -282,7 +283,9 @@ void uwsgi_ruby_gem_set_apply(char *gemset) {
}
}
free(buffer);
// do not free the buffer
// environ will reuse it !!!
//free(buffer);
if (waitpid(pid, &waitpid_status, 0) <0) {
uwsgi_error("waitpid()");
@@ -322,6 +325,9 @@ void uwsgi_ruby_gemset(char *gemset) {
free(filename);
rvm_paths = rvm_paths->next;
}
uwsgi_log("ERROR: unable to load gemset %s !!!\n", gemset);
exit(1);
}