diff options
author | Havoc Pennington <hp@redhat.com> | 2003-03-15 02:19:02 +0000 |
---|---|---|
committer | Havoc Pennington <hp@redhat.com> | 2003-03-15 02:19:02 +0000 |
commit | 4c95a9782c65f88e2904c44abeb734a1b00f6353 (patch) | |
tree | d81b0c3a3497a031cb642dc5126750a36a6651ff /dbus/dbus-transport-unix.c | |
parent | f468907fb09e8198c4cce7e8f2ddeae8b5476b9e (diff) |
2003-03-14 Havoc Pennington <hp@redhat.com>
* dbus/dbus-memory.c: add a "detect buffer overwrites on free"
cheesy hack
* dbus/dbus-transport-debug.c: rework this a good bit to be
less complicated. hopefully still works.
* dbus/dbus-server-debug.c (handle_new_client): remove timeout
manually
* glib/dbus-gmain.c (timeout_handler): don't remove timeout
after running it
* dbus/dbus-message.c (dbus_message_copy): rename from
dbus_message_new_from_message, fix it up to copy
all the message fields, add test case
* bus/dispatch.c (bus_dispatch_test): add some more test code,
not quite passing yet
Diffstat (limited to 'dbus/dbus-transport-unix.c')
-rw-r--r-- | dbus/dbus-transport-unix.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/dbus/dbus-transport-unix.c b/dbus/dbus-transport-unix.c index 81c18b4a..a2b8a384 100644 --- a/dbus/dbus-transport-unix.c +++ b/dbus/dbus-transport-unix.c @@ -136,7 +136,12 @@ check_write_watch (DBusTransport *transport) _dbus_watch_new (unix_transport->fd, DBUS_WATCH_WRITABLE); - /* we can maybe add it some other time, just silently bomb */ + /* FIXME this is total crack. The proper fix is probably to + * allocate the write watch on transport creation, keep it + * allocated. But that doesn't solve needing memory to add the + * watch. messages_pending is going to have to handle OOM + * somehow (probably being part of PreallocatedSend) + */ if (unix_transport->write_watch == NULL) goto out; |