Revision 0f7e663dea7f0e22f3b2d07156c5e9d2e8656610 authored by Bodo Stroesser on 07 May 2005, 04:30:54 UTC, committed by Linus Torvalds on 07 May 2005, 05:09:30 UTC
tt-mode closes switch_pipes in exit_thread_tt and kills processes in switch_to_tt, if the exit_state is EXIT_DEAD or EXIT_ZOMBIE. In very rare cases the exiting process can be scheduled out after having set exit_state and closed switch_pipes (from release_task it calls proc_pid_flush, which might sleep). If this process is to be restarted, UML failes in switch_to_tt with: write of switch_pipe failed, err = 9 We fix this by closing switch_pipes not in exit_thread_tt, but later in release_thread_tt. Additionally, we set switch_pipe[0] = 0 after closing. switch_to_tt must not kill "from" process depending on its exit_state, but must kill it after release_thread was processed only, so it examines switch_pipe[0] for its decision. Signed-off-by: Bodo Stroesser <bstroesser@fujitsu-siemens.com> Signed-off-by: Jeff Dike <jdike@addtoit.com> Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent b8bd022
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 4.3 KB |
Makefile | -rw-r--r-- | 392 bytes |
TODO | -rw-r--r-- | 944 bytes |
af_ax25.c | -rw-r--r-- | 44.7 KB |
ax25_addr.c | -rw-r--r-- | 5.5 KB |
ax25_dev.c | -rw-r--r-- | 4.9 KB |
ax25_ds_in.c | -rw-r--r-- | 7.1 KB |
ax25_ds_subr.c | -rw-r--r-- | 5.1 KB |
ax25_ds_timer.c | -rw-r--r-- | 5.9 KB |
ax25_iface.c | -rw-r--r-- | 5.9 KB |
ax25_in.c | -rw-r--r-- | 10.9 KB |
ax25_ip.c | -rw-r--r-- | 5.1 KB |
ax25_out.c | -rw-r--r-- | 8.6 KB |
ax25_route.c | -rw-r--r-- | 11.9 KB |
ax25_std_in.c | -rw-r--r-- | 11.1 KB |
ax25_std_subr.c | -rw-r--r-- | 2.3 KB |
ax25_std_timer.c | -rw-r--r-- | 4.2 KB |
ax25_subr.c | -rw-r--r-- | 7.0 KB |
ax25_timer.c | -rw-r--r-- | 5.4 KB |
ax25_uid.c | -rw-r--r-- | 4.8 KB |
sysctl_net_ax25.c | -rw-r--r-- | 6.6 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...