Changeset 321 for trunk/src/sh_kern.c


Ignore:
Timestamp:
Mar 17, 2011, 10:07:44 PM (14 years ago)
Author:
katerina
Message:

Fix for ticket #240: The samhain_kmem kernel module should be loaded earlier

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_kern.c

    r303 r321  
    746746  int  errcode;
    747747
     748#ifdef WCONTINUED
     749      int wflags = WNOHANG|WUNTRACED|WCONTINUED;
     750#else
     751      int wflags = WNOHANG|WUNTRACED;
     752#endif
     753
    748754  /* Close reading side of pipe, and wait some milliseconds
    749755   */
     
    820826
    821827  if (status < 0)
    822     res = waitpid(mpid, NULL,    WNOHANG|WUNTRACED);
     828    res = waitpid(mpid, NULL,    wflags);
    823829  else
    824830    {
    825       res = waitpid(mpid, &status, WNOHANG|WUNTRACED);
     831      res = waitpid(mpid, &status, wflags);
    826832      if (res == 0 && 0 != WIFEXITED(status))
    827833        status = WEXITSTATUS(status);
Note: See TracChangeset for help on using the changeset viewer.