[Prev][Next][Index][Thread]

# Re: kill_task(task_id())

- Date: Sun, 21 Jan 1996 15:13:50 PST
- From:
- In-reply-to: "David J. Chiodo"'s message of "Fri, 19 Jan 1996 16:30:30 PST" <Pine.LNX.3.91.960119192735.3677M-100000@microwave.com>

    David J. Chiodo writes:
    > > How can one prevent someone from killing a task that they shouldn't be
    > > killing?
    >
    > How about $server_options.protect_kill_task == 1,
    > and #0:kill_task() ?
    > and #0:register_unkillable()
    >
    > Any task that shouldnt be killed, could call #0:register_unkillable,
    > which would save the task_id() in #0.unkillable
    > #0:kill_task, would check the args[1] against this list, and only kill
    > the task if it wasnt there..

    Of course, they can still do any of the following:

    	suspend($maxint)
    	while (1) endwhile
    	x = "x"; while (1) x = x + x; endwhile

    any of which will do just as much damage as calling kill_task(task_id())...

    	Pavel

Follow-Ups:

- Re: kill_task(task_id())

- From: Jay Carlson <nop@nop.com>

References:

- Re: MOO-Cows Digest V1 #306

- From: "David J. Chiodo" <djc@microwave.com>

- Prev: Re: kill_task(task_id())
- Next: Re: kill_task(task_id())
- Index: MOO-cows
- Thread: MOO-cows

Home | Subject Index | Thread Index