		DebugDir(uid_t uid, gid_t gid) {
			path = "/tmp/passenger.spawn-debug.";
			path.append(toString(getpid()));
			path.append("-");
			path.append(pointerToIntString(this));

			if (syscalls::mkdir(path.c_str(), 0700) == -1) {
				int e = errno;
				throw FileSystemException("Cannot create directory '" +
					path + "'", e, path);
			}
			this_thread::disable_interruption di;
			this_thread::disable_syscall_interruption dsi;
			syscalls::chown(path.c_str(), uid, gid);
		}
		DebugDir(uid_t uid, gid_t gid) {
			path = "/tmp/passenger.spawn-debug.";
			path.append(toString(getpid()));
			path.append("-");
			path.append(pointerToIntString(this));

			if (syscalls::mkdir(path.c_str(), 0700) == -1) {
				int e = errno;
				throw FileSystemException("Cannot create directory '" +
					path + "'", e, path);
			}
			this_thread::disable_interruption di;
			this_thread::disable_syscall_interruption dsi;
			syscalls::chown(path.c_str(), uid, gid);
		}