Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(507)

Issue 74440044: code review 74440044: os: relax the way we kill processes on Plan 9 (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 3 months ago by ality
Modified:
11 years, 3 months ago
Reviewers:
gobot, rsc
CC:
rsc, 0intro, golang-codereviews
Visibility:
Public.

Description

os: relax the way we kill processes on Plan 9 Previously, we wrote "kill" to the process control file to kill a program. This is problematic because it doesn't let the program gracefully exit. This matters especially if the process we're killing is a Go program. On Unix, sending SIGKILL to a Go program will automatically kill all runtime threads. On Plan 9, there are no threads so when the program wants to exit it has to somehow signal all of the runtime processes. It can't do this if we mercilessly kill it by writing to it's control file. Instead, we now send it a note to invoke it's note handler and let it perform any cleanup before exiting.

Patch Set 1 #

Patch Set 2 : diff -r 4d38723d03f0 https://code.google.com/p/go #

Patch Set 3 : diff -r 4d38723d03f0 https://code.google.com/p/go #

Patch Set 4 : diff -r 3018a8137880 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -8 lines) Patch
M src/pkg/os/exec_plan9.go View 1 2 chunks +1 line, -8 lines 0 comments Download

Messages

Total messages: 5
ality
Hello rsc@golang.org, 0intro@gmail.com (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go
11 years, 3 months ago (2014-03-12 12:08:39 UTC) #1
0intro
It looks fine to me. It doesn't fix the net/http/cgi test by itself, but it ...
11 years, 3 months ago (2014-03-12 18:57:10 UTC) #2
rsc
LGTM
11 years, 3 months ago (2014-03-12 20:33:45 UTC) #3
ality
*** Submitted as https://code.google.com/p/go/source/detail?r=35d1f708a0d2 *** os: relax the way we kill processes on Plan 9 ...
11 years, 3 months ago (2014-03-13 01:13:20 UTC) #4
gobot
11 years, 3 months ago (2014-03-13 03:01:58 UTC) #5
Message was sent while issue was closed.
This CL appears to have broken the windows-386-ec2 builder.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b