781094ad81
- fix build on alpha by not comparing a va_list to NULL. problem noticed and fix tested by merdely@. - fix possible 100% cpu usage in full-duplex mode - fix net client/server - add @bin markers to PLIST
23 lines
889 B
Plaintext
23 lines
889 B
Plaintext
$OpenBSD: patch-drivers_dummy_dummy_driver_c,v 1.1 2008/06/28 05:49:30 jakemsr Exp $
|
|
--- drivers/dummy/dummy_driver.c.orig Thu May 22 23:20:25 2008
|
|
+++ drivers/dummy/dummy_driver.c Mon Jun 16 18:36:24 2008
|
|
@@ -109,6 +109,7 @@ dummy_driver_wait (dummy_driver_t *driver, int extra_f
|
|
{
|
|
jack_nframes_t nframes = driver->period_size;
|
|
struct timespec now;
|
|
+ struct timespec ts;
|
|
|
|
*status = 0;
|
|
/* this driver doesn't work so well if we report a delay */
|
|
@@ -133,7 +134,9 @@ dummy_driver_wait (dummy_driver_t *driver, int extra_f
|
|
}
|
|
driver->next_wakeup = add_ts(driver->next_wakeup, driver->wait_time);
|
|
} else {
|
|
- if(clock_nanosleep(CLOCK_REALTIME, TIMER_ABSTIME, &driver->next_wakeup, NULL)) {
|
|
+ ts.tv_sec = 0;
|
|
+ ts.tv_nsec = ts_to_nsec(driver->next_wakeup) - ts_to_nsec(now);
|
|
+ if(nanosleep(&ts, NULL)) {
|
|
jack_error("error while sleeping");
|
|
*status = -1;
|
|
} else {
|