Bug 150175 - misc/dahdi rc script should not allow it to stop while in use
Summary: misc/dahdi rc script should not allow it to stop while in use
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 8.1-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: Max Khon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-01 06:50 UTC by janow49420
Modified: 2010-09-04 10:31 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description janow49420 2010-09-01 06:50:01 UTC
I believe there should be some error handling in the rc script for dahdi to not allow a user to stop it if other things, like asterisk are using the devices ie /dev/dahdi/x

If a user does stop dahdi without stopping other services, the system will kernel panic.

Fix: 

Check to see if other processes using dahdi are running.
How-To-Repeat: Stop dahdi before stopping asterisk.
Comment 1 Max Khon freebsd_committer freebsd_triage 2010-09-04 10:02:26 UTC
Responsible Changed
From-To: freebsd-bugs->fjoe

To me.
Comment 2 dfilter service freebsd_committer freebsd_triage 2010-09-04 10:04:32 UTC
fjoe        2010-09-04 09:04:24 UTC

  FreeBSD ports repository

  Modified files:
    misc/dahdi           Makefile distinfo 
    misc/dahdi/files     patch-zaphfc 
  Removed files:
    misc/dahdi/files     patch-freebsd-drivers-dahdi-wctdm.c 
                         patch-freebsd-freebsd-Makefile 
                         patch-freebsd-freebsd-Makefile.inc 
  Log:
  Update to 2.4.0-rc5.
  
  Major changes are:
  - it is no longer possible to unload drivers in use [1]
  - wctdm params patch is now in upstream
  - NO_FETCH patch and ADDITIONAL_DRIVERS patches are no longer required
  
  PR:             150175 [1]
  Sponsored by:   The FreeBSD Foundation
  
  Revision  Changes    Path
  1.16      +1 -1      ports/misc/dahdi/Makefile
  1.8       +3 -3      ports/misc/dahdi/distinfo
  1.2       +0 -36     ports/misc/dahdi/files/patch-freebsd-drivers-dahdi-wctdm.c (dead)
  1.2       +0 -12     ports/misc/dahdi/files/patch-freebsd-freebsd-Makefile (dead)
  1.2       +0 -14     ports/misc/dahdi/files/patch-freebsd-freebsd-Makefile.inc (dead)
  1.2       +165 -26   ports/misc/dahdi/files/patch-zaphfc
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Max Khon freebsd_committer freebsd_triage 2010-09-04 10:31:04 UTC
State Changed
From-To: open->closed

Fixed in dahdi-2.4.0rc5