TermSubR.sgm 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <!-- $XConsortium: TermSubR.sgm /main/8 1996/10/08 20:44:54 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.XCSA.MAN56.rsml.1">]]>
  10. <![ %CDE.C.XO; [<RefEntry Id="XCSA.MAN56.rsml.1">]]>
  11. <RefMeta>
  12. <RefEntryTitle>DtTermSubprocReap</RefEntryTitle>
  13. <ManVolNum>library call</ManVolNum>
  14. </RefMeta>
  15. <RefNameDiv>
  16. <RefName><Function>DtTermSubprocReap</Function></RefName>
  17. <RefPurpose>allow a DtTerm widget to clean up after subprocess termination
  18. </RefPurpose>
  19. </RefNameDiv>
  20. <!-- CDE Common Source Format, Version 1.0.0-->
  21. <!-- *************************************************************************-->
  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. <!-- *************************************************************************-->
  27. <RefSynopsisDiv>
  28. <FuncSynopsis Remap="ANSI">
  29. <FuncSynopsisInfo>#include &lt;Dt/Term.h>
  30. </FuncSynopsisInfo>
  31. <FuncDef>void <Function>DtTermSubprocReap</Function></FuncDef>
  32. <ParamDef>pid_t <Parameter>pid</Parameter></ParamDef>
  33. <ParamDef>int *<Parameter>stat_loc</Parameter></ParamDef>
  34. </FuncSynopsis>
  35. </RefSynopsisDiv>
  36. <RefSect1>
  37. <Title>DESCRIPTION</Title>
  38. <Para>The
  39. <Function>DtTermSubprocReap</Function> function allows DtTerm widgets to function correctly
  40. in applications that have installed a
  41. <SystemItem Class="Constant">SIGCHLD</SystemItem> signal handler.
  42. </Para>
  43. <Para>The
  44. <Emphasis>pid</Emphasis> argument specifies the process ID of the child process
  45. <Function>wait</Function>(2) returns.
  46. </Para>
  47. <Para>The
  48. <Emphasis>stat_loc</Emphasis> argument specifies the termination information
  49. <Function>wait</Function>(2) returns.
  50. </Para>
  51. </RefSect1>
  52. <RefSect1>
  53. <Title>RETURN VALUES</Title>
  54. <Para>The
  55. <Function>DtTermSubprocReap</Function> function returns no value.
  56. </Para>
  57. </RefSect1>
  58. <RefSect1>
  59. <Title>APPLICATION USAGE</Title>
  60. <Para>The
  61. <Function>DtTermSubprocReap</Function> function allows an application to install its own
  62. <SystemItem Class="Constant">SIGCHLD</SystemItem> signal handler.
  63. </Para>
  64. <Para>The application must install its own
  65. <SystemItem Class="Constant">SIGCHILD</SystemItem> signal handler and call
  66. <Function>DtTermSubprocReap</Function> if the DtTerm widget was created with the
  67. <Symbol>DtSubprocessTerminatorCatch</Symbol> resource set to
  68. <SystemItem Class="Constant">False</SystemItem>.</Para>
  69. <Para>The application must call the
  70. <Function>DtTermSubprocReap</Function> function after performing a
  71. <Function>wait</Function>(2) (or associated function) on a terminated child process.
  72. If the child process is associated with a DtTerm
  73. widget, the widget's data structures are cleaned
  74. up and the associated callbacks invoked.
  75. </Para>
  76. </RefSect1>
  77. <RefSect1>
  78. <Title>SEE ALSO</Title>
  79. <Para>&cdeman.Dt.Term.h;, &cdeman.DtTerm;, <![ %CDE.C.CDE; [<Filename MoreInfo="RefEntry">signal</Filename>(5), <Function>wait</Function>(2). ]]><![ %CDE.C.XO; [<Function>sigaction</Function>, <Function>wait</Function> in the &str-ZK;.
  80. ]]></Para>
  81. </RefSect1>
  82. </RefEntry>
  83. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:40:24-->