diff options
author | Jorge Arellano Cid <jcid@dillo.org> | 2009-08-05 21:46:32 -0400 |
---|---|---|
committer | Jorge Arellano Cid <jcid@dillo.org> | 2009-08-05 21:46:32 -0400 |
commit | 4858c790e6e0c4023d265d6e54e934d1a31eb72c (patch) | |
tree | b2e457f5107d0cef2ed3d11545cb973d04bbbe9d /src/IO/iowatch.cc | |
parent | 4760495cae7967364a97f9d59b73454ab03ee772 (diff) |
Changed the CCCs to build in one step (for both HTTP and DPI)
Diffstat (limited to 'src/IO/iowatch.cc')
-rw-r--r-- | src/IO/iowatch.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/IO/iowatch.cc b/src/IO/iowatch.cc index 0749e24c..f67b711f 100644 --- a/src/IO/iowatch.cc +++ b/src/IO/iowatch.cc @@ -22,7 +22,8 @@ using namespace fltk; // void a_IOwatch_add_fd(int fd, int when, FileHandler Callback, void *usr_data=0) { - add_fd(fd, when, Callback, usr_data); + if (fd >= 0) + add_fd(fd, when, Callback, usr_data); } // @@ -30,6 +31,7 @@ void a_IOwatch_add_fd(int fd, int when, FileHandler Callback, void *usr_data=0) // void a_IOwatch_remove_fd(int fd, int when) { - remove_fd(fd, when); + if (fd >= 0) + remove_fd(fd, when); } |