home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / internal / 1745 < prev    next >
Encoding:
Internet Message Format  |  1992-08-25  |  1.7 KB

  1. Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!jvnc.net!netnews.upenn.edu!msuinfo!eecae.ee.msu.edu!jhl
  2. From: jhl@eecae.msu.edu (John Lawitzke)
  3. Newsgroups: comp.unix.internals
  4. Subject: psignal()
  5. Message-ID: <1992Aug25.200550.1862@msuinfo.cl.msu.edu>
  6. Date: 25 Aug 92 20:05:50 GMT
  7. Sender: news@msuinfo.cl.msu.edu
  8. Organization: Michigan State University, East Lansing
  9. Lines: 33
  10. Originator: jhl@eecae.ee.msu.edu
  11.  
  12. I am working on a project which consists of a SCO UNIX device driver and
  13. a daemon.  The device driver is monitoring for two events within the
  14. hardware.  When either event occurs, the device driver attempts to send
  15. a signal to the daemon to inform it of the occurence.
  16.  
  17. The events being monitored for are few and far between, therefore
  18. signals will work fine.
  19.  
  20. Now the problem, my testing indicates that the device driver is
  21. functioning properly and the signals are being sent.  The daemon
  22. receives signals fine when I send them via "kill" from the command line.
  23. However, the signals from the device driver never arrive. The daemon is
  24. using sigaction() for signal handling setup.
  25.  
  26. The device driver functions as follows:
  27.  
  28. The daemon opens the device and writes an identifying string. 
  29. When the device driver receives the id string, it saves the value of
  30. u.u_procp for future use.
  31. The daemon closes the device.  The daemon now sits in:
  32.     for (;;)
  33.         pause();
  34. When an event being monitored for occurs, the device driver uses the
  35. saved value of u.u_procp to send a signal.
  36.  
  37. I have throughly tested everything.  Algorithms and coding are correct.
  38. Why doesn't the signal appear at the process?
  39.  
  40. -- 
  41. John Lawitzke
  42. Manager of Product Management
  43. Dale Computer Corp.
  44. Internet: jhl@frith.egr.msu.edu
  45.