ObjFW  Diff

Differences From Artifact [eb421acf0f]:

To Artifact [7e13a65e14]:


134
135
136
137
138
139
140








141
142
143
144
145
146
147
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155







+
+
+
+
+
+
+
+







}

/*
 * FIXME: Add -[fileDescriptor]. The problem is that we have two FDs, which is
 *	  not yet supported by OFStreamObserver. This has to be split into one
 *	  FD for reading and one for writing.
 */

- (void)closeForWriting
{
	if (writePipe[1] != -1)
		close(writePipe[1]);

	writePipe[1] = -1;
}

- (void)close
{
	if (readPipe[0] != -1)
		close(readPipe[0]);
	if (writePipe[1] != -1)
		close(writePipe[1]);