diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2008-12-27 14:18:27 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2008-12-27 14:18:27 +0000 |
commit | 486fb48e7378acef96f0fe3285ba58858190ae21 (patch) | |
tree | 4cf5f6f221cb1a1176f9d2683945649c69ddad5e /usr.bin/aucat | |
parent | b7294fedf4b7c7d03bc38a7ec9d85ad70384d60c (diff) |
do not call exit(1) if sio_start(3) or sio_stop(3) fail. The
error will be catched later in the main loop.
Diffstat (limited to 'usr.bin/aucat')
-rw-r--r-- | usr.bin/aucat/safile.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/aucat/safile.c b/usr.bin/aucat/safile.c index 00977b1bb28..7e6cd30902b 100644 --- a/usr.bin/aucat/safile.c +++ b/usr.bin/aucat/safile.c @@ -1,4 +1,4 @@ -/* $OpenBSD: safile.c,v 1.7 2008/12/26 13:29:31 ratchov Exp $ */ +/* $OpenBSD: safile.c,v 1.8 2008/12/27 14:18:26 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org> * @@ -164,8 +164,8 @@ safile_start(struct file *file) struct safile *f = (struct safile *)file; if (!sio_start(f->hdl)) { - fprintf(stderr, "safile_start: sio_start() failed\n"); - exit(1); + DPRINTF("safile_start: sio_start() failed\n"); + return; } DPRINTF("safile_start: play/rec started\n"); } @@ -176,8 +176,8 @@ safile_stop(struct file *file) struct safile *f = (struct safile *)file; if (!sio_stop(f->hdl)) { - fprintf(stderr, "safile_stop: sio_start() filed\n"); - exit(1); + DPRINTF("safile_stop: sio_stop() filed\n"); + return; } DPRINTF("safile_stop: play/rec stopped\n"); } |