2
0

Signal.sgm 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <!-- $XConsortium: Signal.sgm /main/6 1996/09/08 20:16:18 rws $ -->
  2. <!-- (c) Copyright 1995 Digital Equipment Corporation. -->
  3. <!-- (c) Copyright 1995 Hewlett-Packard Company. -->
  4. <!-- (c) Copyright 1995 International Business Machines Corp. -->
  5. <!-- (c) Copyright 1995 Sun Microsystems, Inc. -->
  6. <!-- (c) Copyright 1995 Novell, Inc. -->
  7. <!-- (c) Copyright 1995 FUJITSU LIMITED. -->
  8. <!-- (c) Copyright 1995 Hitachi. -->
  9. <![ %CDE.C.CDE; [<RefEntry Id="CDEMX.XCDI.MAN313.rsml.1">]]>
  10. <![ %CDE.C.XO; [<RefEntry Id="XCDI.MAN313.rsml.1">]]>
  11. <RefMeta>
  12. <RefEntryTitle>Signal</RefEntryTitle>
  13. <ManVolNum>special file</ManVolNum>
  14. </RefMeta>
  15. <RefNameDiv>
  16. <RefName><Symbol Role="Message">Signal</Symbol></RefName>
  17. <RefPurpose>send a (POSIX-style) signal to a tool
  18. </RefPurpose>
  19. </RefNameDiv>
  20. <!-- $XConsortium: Signal.sgm /main/6 1996/09/08 20:16:18 rws $-->
  21. <!-- CDE Common Source Format, Version 1.0.0-->
  22. <!-- (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company-->
  23. <!-- (c) Copyright 1993, 1994, 1995 International Business Machines Corp.-->
  24. <!-- (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.-->
  25. <!-- (c) Copyright 1993, 1994, 1995 Novell, Inc.-->
  26. <RefSynopsisDiv>
  27. <Synopsis>Signal(in string <Emphasis>theSignal</Emphasis>);
  28. </Synopsis>
  29. </RefSynopsisDiv>
  30. <RefSect1>
  31. <Title>DESCRIPTION</Title>
  32. <Para>The
  33. <Symbol Role="Message">Signal</Symbol> request
  34. asks the handling procid to send itself the
  35. indicated POSIX signal.
  36. </Para>
  37. <Para>The
  38. <Emphasis>theSignal</Emphasis> argument
  39. is the signal to send.
  40. </Para>
  41. </RefSect1>
  42. <RefSect1>
  43. <Title>APPLICATION USAGE</Title>
  44. <Para>The
  45. &cdeman.ttdt.session.join;, function can be used to register for,
  46. and transparently process, the
  47. <Symbol Role="Message">Signal</Symbol> request.
  48. </Para>
  49. </RefSect1>
  50. <RefSect1>
  51. <Title>EXAMPLES</Title>
  52. <Para>The
  53. <Symbol Role="Message">Signal</Symbol> request can be sent as in the following example:
  54. </Para>
  55. <InformalExample Remap="indent">
  56. <ProgramListing>Tt_message msg = tttk_message_create(0, TT_REQUEST, TT_SESSION,
  57. the_recipient_procid, TTDT_SIGNAL,
  58. my_callback);
  59. tt_message_arg_add(msg, TT_IN, Tttk_string, "SIGHUP");
  60. tt_message_send(msg);
  61. </ProgramListing>
  62. </InformalExample>
  63. </RefSect1>
  64. <![ %CDE.C.CDE; [
  65. <RefSect1>
  66. <Title>WARNINGS</Title>
  67. <Para><Symbol Role="Message">Signal</Symbol> can also be sent as a multicast notice, as an
  68. <Emphasis>edict</Emphasis> to all tools in the scope of the message.
  69. The consequences of doing so can be severe and unexpected.
  70. </Para>
  71. </RefSect1>
  72. ]]>
  73. <RefSect1>
  74. <Title>SEE ALSO</Title>
  75. <Para><Function>sigaction</Function>(2) <![ %CDE.C.XO; [in the &str-ZK;;
  76. ]]>&cdeman.tt.message.arg.add;, &cdeman.tt.message.send;, &cdeman.ttdt.session.join;.</Para>
  77. </RefSect1>
  78. </RefEntry>
  79. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:18:47-->