shithub: drawterm

Download patch

ref: 50746b16b551b78b0891a2be35be0f8796f2ad6f
parent: 8bd7505dc37201cbcb99bf4e6b48d938af64bb5b
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun May 29 20:26:08 EDT 2016

rcpu: post final hangup note to the group after rc exits

--- a/cpu.c	Sun May 29 19:14:33 2016
+++ b/cpu.c	Sun May 29 20:26:08 2016
@@ -124,7 +124,8 @@
 "	</dev/cons >/dev/cons >[2=1] aux/kbdfs -dq -m /mnt/term/dev\n"
 "	bind -q /mnt/term/dev/cons /dev/cons\n"
 "}\n"
-"</dev/cons >/dev/cons >[2=1] service=cpu exec rc -li\n";
+"</dev/cons >/dev/cons >[2=1] service=cpu rc -li\n"
+"echo -n hangup >/proc/$pid/notepg\n";
 	int fd;
 
 	if((fd = dial(netmkaddr(host, "tcp", "17019"), nil, nil, nil)) < 0)