]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Open the DAHDI pseudo device and set it to be nonblocking atomically
authorMark Michelson <mmichelson@digium.com>
Mon, 16 Feb 2009 21:34:27 +0000 (21:34 +0000)
committerMark Michelson <mmichelson@digium.com>
Mon, 16 Feb 2009 21:34:27 +0000 (21:34 +0000)
commit5ae664d5aa863e410f46742d0221bc76fca2e093
treec6e83989383a3f0f9dff153b667cb79ab61445a0
parent1a00cbbf1de298d7102ebe6a125cf6d8461e51ec
Open the DAHDI pseudo device and set it to be nonblocking atomically

Apparently on FreeBSD, attempting to set the O_NONBLOCKING flag separately
from opening the file was causing an "inappropriate ioctl for device" error.
While I cannot fathom why this would be happening, I certainly am not opposed
to making the code a bit more compact/efficient if it also fixes a bug.

(closes issue #14482)
Reported by: ys
Patches:
      meetme.patch uploaded by ys (license 281)
Tested by: ys

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@176249 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/app_meetme.c