Ignore:
Timestamp:
Sep 10, 2020, 2:47:29 AM (5 years ago)
Author:
bird
Message:

kash: Hammering on threaded mode. Got shexit half working. Incomplete sh_destroy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kash/shinstance.h

    r3438 r3439  
    150150    shsigset_t          sigmask;        /**< Our signal mask. */
    151151    char              **shenviron;      /**< The environment vector. */
    152     int                 num_children;   /**< Number of children in the array. */
     152    int                 linked;         /**< Set if we're still linked. */
     153    unsigned            num_children;   /**< Number of children in the array. */
    153154    shchild            *children;       /**< The child array. */
    154155#ifndef SH_FORKED_MODE
    155156    int (*thread)(struct shinstance *, void *); /**< The thread procedure. */
    156157    void               *threadarg;      /**< The thread argument. */
     158    struct jmploc      *exitjmp;        /**< Long jump target in sh_thread_wrapper for use by sh__exit. */
    157159#endif
    158160
     
    165167    char               *curdir;         /**< current working directory */
    166168    char               *prevdir;        /**< previous working directory */
    167     char               *cdcomppath;
     169    char               *cdcomppath;     /**< (stalloc) */
    168170    int                 getpwd_first;   /**< static in getpwd. (initialized to 1!) */
    169171
     
    182184    int                 exitstatus;     /**< exit status of last command */
    183185    int                 back_exitstatus;/**< exit status of backquoted command */
    184     struct strlist     *cmdenviron;     /**< environment for builtin command */
     186    struct strlist     *cmdenviron;     /**< environment for builtin command (varlist from evalcommand()) */
    185187    int                 funcnest;       /**< depth of function calls */
    186188    int                 evalskip;       /**< set if we are skipping commands */
     
    354356    char              **t_wp;
    355357    struct t_op const  *t_wp_op;
    356 
    357358};
    358359
Note: See TracChangeset for help on using the changeset viewer.