[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 07/25: Fix looping over runsystem possibilities
From: |
Samuel Thibault |
Subject: |
[hurd] 07/25: Fix looping over runsystem possibilities |
Date: |
Mon, 24 Oct 2016 00:16:44 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch upstream
in repository hurd.
commit edb2947461fbea9b25a651afd1cf35dc49733ce6
Author: Samuel Thibault <address@hidden>
Date: Thu Sep 1 01:49:41 2016 +0200
Fix looping over runsystem possibilities
* startup/startup.c (launch_something): Always increment TRY even on
success, so that if runsystem unexpectedly returns, we get to try a shell
instead.
---
startup/startup.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/startup/startup.c b/startup/startup.c
index 3c757e9..f54de5e 100644
--- a/startup/startup.c
+++ b/startup/startup.c
@@ -1199,10 +1199,11 @@ launch_something (const char *why)
if (something != MACH_PORT_NULL)
{
mach_port_deallocate (mach_task_self (), something);
- if (start_child (tries[try], NULL) == 0)
+ if (start_child (tries[try++], NULL) == 0)
return;
}
- try++;
+ else
+ try++;
}
crash_system ();
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] branch upstream updated (12576ff -> 341f43d), Samuel Thibault, 2016/10/23
- [hurd] 01/25: remap: Refuse non-absolute paths, Samuel Thibault, 2016/10/23
- [hurd] 04/25: Fix message about not being able to request shutdown notification, Samuel Thibault, 2016/10/23
- [hurd] 02/25: typo, Samuel Thibault, 2016/10/23
- [hurd] 07/25: Fix looping over runsystem possibilities,
Samuel Thibault <=
- [hurd] 03/25: Fix exec crash when setexecdata has never been called, Samuel Thibault, 2016/10/23
- [hurd] 05/25: exec: Fix loading binaries without a memory manager object, Samuel Thibault, 2016/10/23
- [hurd] 10/25: Fix patch to runsystem.hurd, Samuel Thibault, 2016/10/23
- [hurd] 20/25: console-client: Remove unused variable., Samuel Thibault, 2016/10/23
- [hurd] 19/25: ext2fs: Poison pointers into dereferenced cache pages., Samuel Thibault, 2016/10/23
- [hurd] 08/25: libfshelp: acquire references to control ports, Samuel Thibault, 2016/10/23
- [hurd] 15/25: Avoid fatal error handling in option parsers., Samuel Thibault, 2016/10/23
- [hurd] 25/25: boot: Ignore EINTR., Samuel Thibault, 2016/10/23
- [hurd] 24/25: Avoid warnings if increasing a threads priority fails., Samuel Thibault, 2016/10/23
- [hurd] 18/25: ext2fs: Rename parameter., Samuel Thibault, 2016/10/23