Alexandre Ratchov
cf1ebc72d3
make midi->tickets signed (sign is needed for arithmetics). Found
...
by David Coppa. Thanks.
2016-01-09 14:33:10 +01:00
Alexandre Ratchov
12dccf8463
check that socket path is a directory
2016-01-09 11:08:18 +01:00
Alexandre Ratchov
e20bb8997d
remove trailing \n from string passed to err()
2016-01-09 09:56:28 +01:00
Alexandre Ratchov
e2be625ebd
unexpand
2016-01-09 09:49:48 +01:00
Alexandre Ratchov
105db99d30
fit in 80 columns
2016-01-08 17:26:47 +01:00
Alexandre Ratchov
e22e6a1b26
fix trailing spaces
2016-01-08 17:24:48 +01:00
Alexandre Ratchov
400600af2e
free tcpaddr structures
2016-01-08 14:39:55 +01:00
Alexandre Ratchov
4fdefa70d7
remove redundant debug message
2016-01-08 11:48:26 +01:00
Alexandre Ratchov
9a493931b5
fix installation path of man page
2016-01-08 11:48:05 +01:00
Alexandre Ratchov
3b3a64a4fc
Don't calculate clock deltas is there are no time-outs. Removes (harmless)
...
warnings about out-of-bounds clock deltas.
2016-01-08 11:45:01 +01:00
Alexandre Ratchov
aa4fc43964
move sndiod manual to sec 8
2016-01-07 17:48:47 +01:00
Alexandre Ratchov
5219e9d39d
Warn about huge clock ticks only if there are time-outs
2016-01-05 09:43:13 +01:00
Alexandre Ratchov
aa3d0b1ca1
assert xfree() doesn't get NULL arg
2015-12-30 12:56:11 +01:00
Alexandre Ratchov
67bf8b7786
sys/queue.h isn't used
2015-12-30 12:55:18 +01:00
Alexandre Ratchov
8af6aa7130
panic if CLOCK_MONOTONIC is unsupported
2015-12-22 13:17:00 +01:00
Alexandre Ratchov
02a873aace
use err() on init and log_xxx() at runtime
2015-12-17 15:59:03 +01:00
Alexandre Ratchov
18105ebb4c
allow listen_new_xxx() to return error, use log_xxx()
2015-12-17 15:50:37 +01:00
Alexandre Ratchov
44eae7129c
use log_xxx() in opt.c, use simple list
2015-12-17 12:56:25 +01:00
Alexandre Ratchov
2009e44d9d
don't require -U to precede -L
2015-12-15 12:49:31 +01:00
Alexandre Ratchov
cac23d61dc
use a copy of the slowaccept flag, as it may change within the
...
poll() loop
2015-12-15 12:28:23 +01:00
Alexandre Ratchov
c77ea93344
Make sndio buildable on NetBSD, from Kamil Rytarowski <n54 at gmx.com>
2015-12-15 06:28:05 +01:00
Alexandre Ratchov
2327821cf0
reset slowaccept upon socket close
2015-12-09 11:24:15 +01:00
Alexandre Ratchov
fc179fb0c0
inline privdrop()
2015-12-09 11:23:55 +01:00
Alexandre Ratchov
91166d3abf
remove -M from getopt() string
2015-12-09 11:16:35 +01:00
Alexandre Ratchov
a04c34288e
define port_log() if no -DDEBUG is defined
2015-11-25 20:54:22 +01:00
Alexandre Ratchov
8e6aa1db1f
say -L is unencrypted
2015-11-25 20:52:31 +01:00
Alexandre Ratchov
3100560d01
listen -> listen on; from Jan Stary
2015-11-25 20:51:50 +01:00
Alexandre Ratchov
276b44ece4
save & restore umask when creating socket dir
2015-11-25 20:50:17 +01:00
Alexandre Ratchov
c8a50a21ea
add port numbers
2015-11-25 20:49:09 +01:00
Alexandre Ratchov
d4cea96993
use stored d->num, in search for devices
2015-11-25 20:48:47 +01:00
Alexandre Ratchov
a17c9dfc55
missing prototype
2015-11-25 20:47:52 +01:00
Alexandre Ratchov
66ca92689e
stop mmc in dev_done, releasing ref to the device
2015-11-25 20:46:03 +01:00
Alexandre Ratchov
8bb88f248f
if no -f or -q are used, attach rsnd/[0-3] and rmidi/[0-7]
2015-10-20 15:25:54 +02:00
Alexandre Ratchov
8575b870d1
spacing
2015-10-02 15:05:43 +02:00
Alexandre Ratchov
0a39548f4d
use SOCKPATH_xxx macros
2015-10-02 14:26:46 +02:00
Alexandre Ratchov
f2b6fd9f4b
s/xfree/free in comments
2015-09-05 13:18:04 +02:00
Alexandre Ratchov
a162cfd9e6
remove mixer api files
2015-08-28 09:03:49 +02:00
Alexandre Ratchov
e8007feb00
move the mixer api to a dedicated "mixer" branch
2015-08-28 08:57:47 +02:00
Alexandre Ratchov
0ab68bae61
comment that -1 means infinite timeout
2015-08-27 09:40:50 +02:00
Alexandre Ratchov
293133ebdf
copy label name in dev_add()
2015-08-26 12:22:06 +02:00
Alexandre Ratchov
30c199e808
Don't call poll(2) with few millisecond time-out argument when -1
...
could be used. Avoids syscalls when the daemon is not being used.
2015-08-11 19:49:07 +02:00
Alexandre Ratchov
92995a97e0
delete timeout on close, log disconnects
2015-07-31 17:46:15 +02:00
Alexandre Ratchov
4063b8217c
crank watchdog timeout to 4 seconds
2015-07-31 17:44:04 +02:00
Alexandre Ratchov
4ca9db857c
Process polled files in two steps: first files that need immediate
...
handling, which would block.
2015-07-20 12:09:53 +02:00
Alexandre Ratchov
2d77ef48f3
rename nfds to max_nfds, no object change
2015-07-17 11:51:31 +02:00
Alexandre Ratchov
9624f2332e
Simplify debug info: log poll descriptors on a single line, record
...
timestamps only when they are needed.
2015-07-17 11:37:24 +02:00
Alexandre Ratchov
5c54742a5d
Stop using interval timers (not inherited by fork(2), obsolete in
...
newer posix releases), use the poll(2) timeout parameter instead.
Fixes hangs during clean-up after the audio device is disconnected
or an unrecoverable error is detected. Suggested by and discussed
with millert@.
2015-07-17 10:16:59 +02:00
Alexandre Ratchov
8468b9f0a0
rename grp->func
2015-06-04 06:12:38 +02:00
Alexandre Ratchov
8620da44d1
make default bufsz 7680 (was 7860)
2015-04-24 19:44:06 +02:00
Alexandre Ratchov
b3a8f99047
make the label use chan1 as parameter
2015-03-12 08:20:23 +01:00