Commits
- Commit:
56b5b3c673442fe9229f6c502a7d039d3850f6c8
- From:
- Omar Polo <op@omarpolo.com>
- Date:
mention the load matching heuristic in the manpage
- Commit:
251e00ff6d49ac88dee01a6bde35f26ac1680d3a
- From:
- Omar Polo <op@omarpolo.com>
- Date:
pledge audio too
while for my particular use-case this has always worked with only "stdio
recvfd", sio_open(3) mentions that if no further sio_open calls are made
all pledges can be dropped except for "audio", so let's keep it.
- Commit:
6a1b899f33aadd9552190404f656163ebe34de34
- From:
- Omar Polo <op@omarpolo.com>
- Date:
no point in returning int from a __dead function
- Commit:
18282bc033540ec923925534986cfa1c232a4a68
- From:
- Omar Polo <op@omarpolo.com>
- Date:
simplify phrasing
- Commit:
cd941eebd3cb53649a4e06fe982bafcf5e6a2ebf
- From:
- Omar Polo <op@omarpolo.com>
- Date:
remove the got_stop hack
now player_playnext has enough information to decide wheter to call
player_senderr or player_sendeof.
- Commit:
0da0ad464c14fc59e00a2d2d904ebc97bedb212e
- From:
- Omar Polo <op@omarpolo.com>
- Date:
change play_*() so that they return an integer
this will allow to remove the `got_stop' hack in player.c
- Commit:
335fa83ad847d6b5b891ec166625907be664ab5d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
drop now unused #include <sndio.h>
with the recent refactoring, sndio is only visible in player.c
- Commit:
5a4b30307238cd3830c084656fe79c1f00eebcde
- From:
- Omar Polo <op@omarpolo.com>
- Date:
drop functions prototypes private to player.c and move hdl there too
- Commit:
2139c525dbcd33e08c153dd8dbe75cd1fddf6b30
- From:
- Omar Polo <op@omarpolo.com>
- Date:
refactor the player_shouldstop/sio_write dance in a function
- Commit:
acaf7eb251046be1f73077acf6519aa7496fa0a4
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix argc check
argc can be -1 if we called noarg with argc=0, because optind is 1.
- Commit:
7e29fc4a3e7217cea06735afda36eac20159ae18
- From:
- Omar Polo <op@omarpolo.com>
- Date:
correctly handle arguments for sub-commands
things like "--" should be skipped etc, easier to rely on getopt(3).
- Commit:
f44b3c4e5f075af1be265b896f3fcb320c831ad8
- From:
- Omar Polo <op@omarpolo.com>
- Date:
output the two repeat bits in two different lines
- Commit:
54f55296abf2a40f2c21a89e621ef7af59515b32
- From:
- Omar Polo <op@omarpolo.com>
- Date:
ctl_noarg: allow argv == 0 for the implicit "status" case
- Commit:
1d6739509f8059b45ef1c1eb4f06d4596fc46984
- From:
- Omar Polo <op@omarpolo.com>
- Date:
rework how the daemon is automatically spawned
The previous way introduce possible races if multiple `amused' instances
try to start the daemon.
The new approach is heavily lifted from how tmux does it, but with some
minor differences. If the initial connect fails we try to grab a lock
to safely execute the daemon only one time. In fact we try to connect
one more time even when we hold the lock because another instance can
grab the lock, start the daemon and release it between the failure of
connect and the first flock.
It also changes slightly how the program behaves and how the -d option
works. Now running `amused' without arguments is a synonym for `amused
status' and the -d option only works if no arguments were given and if
the daemon wasn't running.
- Commit:
494d8ca239824a4809e171c484f2a9518a0dc6a1
- From:
- Omar Polo <op@omarpolo.com>
- Date:
rework the smallest unique prefix sentence a bit