Changeset a097c50 in mainline for uspace/srv/taskman/event.c


Ignore:
Timestamp:
2019-08-07T10:08:48Z (6 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
7cce333
Parents:
ed5367b
git-author:
Michal Koutný <xm.koutny+hos@…> (2015-11-06 00:12:39)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-08-07 10:08:48)
Message:

taskman: Do not notify retval (again) for exited daemon

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/taskman/event.c

    red5367b ra097c50  
    6969{
    7070        int flags = 0;
     71        if (task->retval_type == RVAL_SET) {
     72                flags |= TASK_WAIT_RETVAL;
     73        }
     74
    7175        if (task->exit != TASK_EXIT_RUNNING) {
    7276                flags |= TASK_WAIT_EXIT;
    7377                if (task->retval_type == RVAL_SET_EXIT) {
    7478                        flags |= TASK_WAIT_RETVAL;
    75                 }
    76         }
    77         if (task->retval_type == RVAL_SET) {
    78                 flags |= TASK_WAIT_RETVAL;
    79         }
    80 
     79                } else {
     80                        /* Don't notify retval of exited task */
     81                        flags &= ~TASK_WAIT_RETVAL;
     82                }
     83        }
    8184        return flags;
    8285}
Note: See TracChangeset for help on using the changeset viewer.