patchThe GNU Hurd - Patches: patch #6844, fix a bug in init: initialize...


You are not allowed to post comments on this tracker with your current authentication level.

patch #6844: fix a bug in init: initialize 'flags' in reboot_system

Submitted by:  Zheng Da <zhengda>
Submitted on:  Tue 02 Jun 2009 08:47:27 AM UTC  
Category: other HurdPriority: 5 - Normal
Status: Works For MePrivacy: Public
Assigned to: NoneOpen/Closed: Open
Planned Release: None
Wiki-like text discussion box: 

Tue 02 Jun 2009 08:47:27 AM UTC, original submission:

We should initialize 'flags' in reboot_system.
The only information we need to get from proc_getprocinfo is the state of the process. 'flags = 0' is very enough to do the job and it can make proc_getprocinfo less likely to fail.
The Mach in my system somehow doesn't support the TASK_EVENTS_INFO type of information. Without the initialization of 'flags', it is possible that proc_getprocinfo returns error, which results in the failure to shut down the subhurd.

Zheng Da <zhengda>
Project Member


Attached Files
file #18216:  init.diff added by zhengda (492B - text/x-diff)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by zhengda (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 02 Jun 2009 08:47:27 AM UTCzhengdaAttached File-=>Added init.diff, #18216

    Back to the top

    Powered by Savane 3.1-cleanup1