[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 67/75: Fix pfinet crash
From: |
Samuel Thibault |
Subject: |
[hurd] 67/75: Fix pfinet crash |
Date: |
Thu, 14 Jan 2016 01:04:11 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch dde
in repository hurd.
commit 1a7e27057ed5974be103c60afecdc8aae691584f
Author: Samuel Thibault <address@hidden>
Date: Sun Jan 3 13:34:42 2016 +0100
Fix pfinet crash
During rsyslog testsuite, it does happen that threads running
schedule_timeout get woken up by something else than the timer. The (local)
timer needs to be removed in that case. Let's just always remove it, like
Linux does.
* pfinet/glue-include/linux/sched.h (schedule_timeout): Remove local timer
before returning.
---
pfinet/glue-include/linux/sched.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/pfinet/glue-include/linux/sched.h
b/pfinet/glue-include/linux/sched.h
index 5cf2f1b..e39263e 100644
--- a/pfinet/glue-include/linux/sched.h
+++ b/pfinet/glue-include/linux/sched.h
@@ -185,6 +185,9 @@ schedule_timeout (long timeout)
else
return 0;
}
+ /* It may happen that we get woken without a signal. Noticed notably during
+ rsyslog testsuite. Make sure we don't leave our timer in. */
+ del_timer(&timer);
return 0;
}
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] 32/75: ext2fs: keep list of reusable disk cache entries, (continued)
- [hurd] 32/75: ext2fs: keep list of reusable disk cache entries, Samuel Thibault, 2016/01/13
- [hurd] 33/75: libdiskfs: use ihash for the node cache, Samuel Thibault, 2016/01/13
- [hurd] 31/75: ext2fs: disable block cache debugging by default, Samuel Thibault, 2016/01/13
- [hurd] 27/75: libihash: generalize the interface to support non-integer keys, Samuel Thibault, 2016/01/13
- [hurd] 68/75: Fix build with perl >= 5.22, Samuel Thibault, 2016/01/13
- [hurd] 29/75: libihash: provide a general purpose hash algorithm, Samuel Thibault, 2016/01/13
- [hurd] 65/75: pflocal: Do not abort on too small getopt parameter, Samuel Thibault, 2016/01/13
- [hurd] 71/75: Merge branch 'dde-upstream' into dde, Samuel Thibault, 2016/01/13
- [hurd] 64/75: Add dumb SO_ERROR support to pflocal, Samuel Thibault, 2016/01/13
- [hurd] 75/75: Merge branch 'dde-upstream' into dde, Samuel Thibault, 2016/01/13
- [hurd] 67/75: Fix pfinet crash,
Samuel Thibault <=
- [hurd] 18/75: Drop spurious debugging or outdated changes, Samuel Thibault, 2016/01/13
- [hurd] 74/75: Merge remote-tracking branch 'incubator/dde' into dde-upstream, Samuel Thibault, 2016/01/13
- [hurd] 15/75: Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/hurd into dde, Samuel Thibault, 2016/01/13
- [hurd] 73/75: Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/hurd into dde, Samuel Thibault, 2016/01/13
- [hurd] 16/75: Add libhurd-slab, Samuel Thibault, 2016/01/13
- [hurd] 70/75: Merge remote-tracking branch 'incubator/dde' into dde-upstream, Samuel Thibault, 2016/01/13
- [hurd] 72/75: Drop devnode and libhurd-slab, now upstream, Samuel Thibault, 2016/01/13
- [hurd] 56/75: fix compiler warnings in hurd/nfs and hurd/nfsd, Samuel Thibault, 2016/01/13
- [hurd] 41/75: fix compiler warnings in hurd/libdiskfs, Samuel Thibault, 2016/01/13
- [hurd] 69/75: Fix O_DIRECTORY lookup on trivial translators, Samuel Thibault, 2016/01/13