add some abort() fixmes

SVN revision: 68615
This commit is contained in:
Mike Blumenkrantz 2012-03-02 03:09:47 +00:00
parent 56b1aeb079
commit 84a849bb6a
1 changed files with 4 additions and 0 deletions

View File

@ -140,6 +140,8 @@ eio_monitor_init(void)
eio_monitor_fallback_init();
_eio_monitors = eina_hash_stringshared_new(NULL);
/* FIXME: this check is optional, but if it is kept then failure should be handled more gracefully */
if (!_eio_monitors) abort();
_monitor_pid = getpid();
}
@ -282,6 +284,8 @@ _eio_monitor_rename(Eio_Monitor *monitor, const char *newpath)
_eio_monitor_error_cb,
monitor);
/* FIXME: probably should handle this more gracefully */
if (!monitor->exist) abort();
/* and notify the app */
_eio_monitor_send(monitor, newpath, EIO_MONITOR_SELF_RENAME);
}