Klaus Demo bjoern / 1e7ec56
Fix segfault Jonas Haag 2 years ago
3 changed file(s) with 4 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
4545 again: clean all
4646
4747 debug:
48 CFLAGS='-D DEBUG' make again
48 CFLAGS='-D DEBUG -g' make again
4949
5050 $(BUILD_DIR)/%.o: $(SOURCE_DIR)/%.c
5151 @echo ' -> ' $(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
1010 } FileWrapper;
1111
1212 void _init_filewrapper(void);
13 int FileWrapper_GetFd(PyObject *self);
14 void FileWrapper_Done(PyObject *self);
246246 GIL_LOCK(0);
247247
248248 write_state write_state;
249 if(FileWrapper_CheckExact(request->iterable)) {
249 if(request->iterable && FileWrapper_CheckExact(request->iterable)) {
250250 write_state = on_write_sendfile(mainloop, request);
251251 } else {
252252 write_state = on_write_chunk(mainloop, request);