Changeset a097c50 in mainline


Ignore:
Timestamp:
2019-08-07T10:08:48Z (5 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

Location:
uspace
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tester/proc/task_anywait.c

    red5367b ra097c50  
    3939static task_id_t task_id;
    4040static task_exit_t last_texit;
    41 static bool last_flags;
     41static int last_flags;
    4242static int last_retval;
    4343static bool handler_hit;
  • 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.