Remove blocking struct iop operation
The blocking I/O option makes no sense in the server, because it blocks the server process instead of the thread. In fact, it's been unused since Empire 2, except for one place, where it was used incorrectly, and got removed in the previous commit. Make I/O non-blocking in io_open() unconditionally. Remove IO_NBLOCK and io_noblocking().
This commit is contained in:
parent
70bc528d0d
commit
3805548b3e
3 changed files with 13 additions and 31 deletions
|
@ -37,7 +37,6 @@
|
|||
|
||||
#define IO_READ 0x1
|
||||
#define IO_WRITE 0x2
|
||||
#define IO_NBLOCK 0x8
|
||||
#define IO_EOF 0x10
|
||||
#define IO_ERROR 0x40
|
||||
|
||||
|
@ -48,7 +47,6 @@
|
|||
|
||||
extern struct iop *io_open(int, int, int, struct timeval);
|
||||
extern void io_init(void);
|
||||
extern int io_noblocking(struct iop *, int);
|
||||
extern void io_close(struct iop *);
|
||||
extern int io_input(struct iop *, int);
|
||||
extern int io_inputwaiting(struct iop *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue