Changeset 33675 in project


Ignore:
Timestamp:
09/24/16 13:26:18 (5 years ago)
Author:
sjamaan
Message:

Update scsh-process docs for 0.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/scsh-process

    r33252 r33675  
    308308otherwise.
    309309
     310<procedure>(signal-process proc signal)</procedure>
     311
     312Like {{process-signal}} from the POSIX unit, but accepts a process
     313object ({{proc}}) instead of a pid.  Sends {{signal}} (an integer) to
     314the given process.
     315
     316<procedure>(process-sleep sec)</procedure>
     317
     318Put the entire process to sleep for {{sec}} seconds.  Just an alias
     319for {{sleep}} from the POSIX unit.
     320
    310321<procedure>(process? object)</procedure>
    311 
    312 Is {{object}} an object representing a process?
     322<procedure>(proc? object)</procedure>
     323
     324Is {{object}} an object representing a process?  The {{process?}}
     325predicate is deprecated; {{proc?}} is API-compatible with SCSH.
     326
     327<procedure>(proc:pid proc)</procedure>
     328
     329Retrieve the process id (an integer) from the process object {{proc}}.
    313330
    314331<procedure>(fork/pipe [thunk [continue-threads?]])</procedure>
     
    391408=== Changelog
    392409
     410* 0.6 - Add {{signal-process}}, {{process-sleep}} and {{pid:proc}}.  Deprecated {{process?}} in favor of {{proc?}}.  Thanks to Jörg F. Wittenberger for the suggestion of adding some of these.
    393411* 0.5 - Standard error is no longer redirected by default, making it more consistent with UNIX shells and the original SCSH.  Thanks to Haochi Kiang for pointing this out and providing a patch.
    394412* 0.4.1 - Allow the use of unquote-splicing in run macro forms (thanks to [[/users/moritz-heidkamp|Moritz Heidkamp]] for pointing this out)
     
    412430=== License
    413431
    414   Copyright (c) 2012-2015, Peter Bex
     432  Copyright (c) 2012-2016, Peter Bex
    415433  All rights reserved.
    416434 
Note: See TracChangeset for help on using the changeset viewer.