Commits
- Commit:
98d3e6c172747dc58042bde09a848d3e03572934
- From:
- Omar Polo <op@omarpolo.com>
- Date:
convert telescope to use ev instead of libevent
libevent is a very cool library, I like the APIs and enjoy using
it. However, telescope is not as large and doesn't have as many
file descriptor, so libevent is quite ``too big'' for our needs.
ev started as a small event loop on top of poll(2) for amused, and
can be used here too, it just needed to grow the ability to handle
several timers, as we need quite some on telescope (in fact, we use
more timers than fds!)
- Commit:
94fa875ce5c580f1819c42b322c72cee85298e30
- From:
- Omar Polo <op@omarpolo.com>
- Date:
remove control_imsg_relay; unused
- Commit:
ee0aac2f009a841246854bc189070f07803d0d2e
- From:
- Omar Polo <op@omarpolo.com>
- Date:
work around macos lack of SOCK_CLOEXEC / SOCK_NONBLOCK
rework mark_nonblock so it sets the cloexec flag too and use it in
control.c to avoid these flags. (which are expected to become available
on a future revision of POSIX and are already widely available.)
It's not an issue for telescope to do the socket/accept + fcntl dance
because there aren't threads that can fork(2) (there are no threads at
all!)
reported by @sikmir at github
https://github.com/omar-polo/telescope/commit/59ef79dd19611c7846b00427e6f2267c748ae290#r74498414
- Commit:
7452ce7d14f2164d0ebbff3b129b933191345bcf
- From:
- Omar Polo <op@omarpolo.com>
- Date:
declare uri as static; while here improve legibility of the length check too
- Commit:
0a98735841e8b33edf62bd756ad8c6da2929247a
- From:
- Omar Polo <op@omarpolo.com>
- Date:
ring a bell when remotely opening a link + refactor it a bit
move the logic into its own function.
- Commit:
59ef79dd19611c7846b00427e6f2267c748ae290
- From:
- Omar Polo <op@omarpolo.com>
- Date:
pull in control.c, with some local edits to integrate into the project