Changeset 338 for trunk/src


Ignore:
Timestamp:
Apr 30, 2011, 12:24:17 PM (14 years ago)
Author:
katerina
Message:

Fix reload bug in process check introduced by changeset 335.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_processcheck.c

    r335 r338  
    13081308  sh_prochk_size = sh_prochk_maxpid - sh_prochk_minpid;
    13091309
    1310   sh_prochk_res  = SH_ALLOC(sizeof(short) * sh_prochk_size);
     1310  if (sh_prochk_res == NULL)
     1311    {
     1312      sh_prochk_res  = SH_ALLOC(sizeof(short) * sh_prochk_size);
     1313    }
    13111314  memset (sh_prochk_res, 0, sizeof(short) * sh_prochk_size);
    13121315 
     
    13341337           (sh.flag.isdaemon == S_TRUE || sh.flag.loop == S_TRUE))
    13351338    {
     1339      sh_prochk_init_internal();
    13361340      return SH_MOD_THREAD;
    13371341    }
Note: See TracChangeset for help on using the changeset viewer.