home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / Other Langs / Tickle-4.0 (tcl) / library / help / tcl / processes / fork < prev    next >
Encoding:
Text File  |  1993-10-26  |  780 b   |  17 lines  |  [TEXT/$Tcl]

  1.  
  2.  
  3.           fork
  4.                Fork the current Tcl process.  Fork returns zero to the
  5.                child  process  and  the process number of the child to
  6.                the parent process. If the fork fails, a Tcl  error  is
  7.                generated.
  8.  
  9.                If an execl is not going to  be  performed  before  the
  10.                child  process  does  output,  or  if  a  close and dup
  11.                sequence is going to be performed on stdout or  stderr,
  12.                then  a  flush  should be issued against stdout, stderr
  13.                and any other open output file before doing  the  fork.
  14.                Otherwise characters from the parent process pending in
  15.                the buffers will be output by both the parent and child
  16.                processes.
  17.