lkml.org 
[lkml]   [2007]   [Sep]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH 2/5] Use macros instead of TASK_ flags
    From
    Date
    On Sat, 2007-09-01 at 22:46 -0400, Matthew Wilcox wrote:
    > */
    > if (task == current) return 0;
    >
    > - if ((task->state != TASK_STOPPED) && (task->state !=
    > TASK_TRACED)) {
    > + if (!is_task_stopped_or_traced(task->state)) {
    > DPRINT(("cannot attach to non-stopped task [%d] state=
    > - if ((task->state != TASK_STOPPED) && (task->state !=
    > TASK_TRACED)) {
    > + if (!is_task_stopped_or_traced(task)) {
    > DPRINT(("[%d] task not in stopped state\n",
    > task->pid));
    > return -EBUSY;
    > }

    Does it take task->state or task ?

    Daniel

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2007-09-02 05:49    [W:2.754 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site