Ignore:
Timestamp:
Aug 13, 2020, 11:49:06 AM (5 years ago)
Author:
bird
Message:

kash: Generate the signal names at compile time rather than lazily at runtime. This should be more efficient, though may cause trouble if cross building.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kash/bltin/kill.c

    r2312 r3409  
    5252#include "shinstance.h"
    5353
    54 #ifndef HAVE_SYS_SIGNAME
    55 extern void init_sys_signame(void);
    56 extern char sys_signame[NSIG][16];
    57 #endif
    5854
    5955static int nosig(shinstance *, char *);
     
    7268
    7369        numsig = SIGTERM;
    74 #ifndef HAVE_SYS_SIGNAME
    75         init_sys_signame();
    76 #endif
    7770
    7871        argc--, argv++;
Note: See TracChangeset for help on using the changeset viewer.